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 847a63d commit b722496Copy full SHA for b722496
lib/gon.rb
@@ -60,6 +60,9 @@ def set_variable(name, value)
60
end
61
62
def rabl(view_path, options = {})
63
+ if !defined?(Gon::Rabl)
64
+ raise NoMethodError.new('You should define Rabl in your Gemfile')
65
+ end
66
rabl_data = Gon::Rabl.parse_rabl(view_path, options[:controller] ||
67
@request_env['action_controller.instance'] ||
68
@request_env['action_controller.rescue.response'].
0 commit comments