lib/gon.rb in gon-6.0.1 vs lib/gon.rb in gon-6.1.0
- old
+ new
@@ -34,10 +34,10 @@
end
def method_missing(method, *args, &block)
if method.to_s =~ /=$/
if public_method_name?(method)
- raise 'You can\'t use Gon public methods for storing data'
+ raise "You can't use Gon public methods for storing data: #{method}"
end
if self == Gon && !current_gon
raise 'Assign request-specific gon variables only through `gon` helper, not through Gon constant'
end