We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d758cff commit 900a705Copy full SHA for 900a705
lib/gon.rb
@@ -44,7 +44,7 @@ def request=(request_id)
44
45
def method_missing(m, *args, &block)
46
if ( m.to_s =~ /=$/ )
47
- if RUBY_VERSION /1.9/
+ if RUBY_VERSION =~ /1.9/
48
if public_methods.include? m.to_s[0..-2].to_sym
49
raise "You can't use Gon public methods for storing data"
50
end
0 commit comments