Skip to content

Commit 900a705

Browse files
committed
typo fix
1 parent d758cff commit 900a705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gon.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def request=(request_id)
4444

4545
def method_missing(m, *args, &block)
4646
if ( m.to_s =~ /=$/ )
47-
if RUBY_VERSION /1.9/
47+
if RUBY_VERSION =~ /1.9/
4848
if public_methods.include? m.to_s[0..-2].to_sym
4949
raise "You can't use Gon public methods for storing data"
5050
end

0 commit comments

Comments
 (0)