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 060ea40 commit ee68523Copy full SHA for ee68523
lib/gon.rb
@@ -48,12 +48,18 @@ def clear
48
end
49
50
def rabl(*args)
51
+ unless Gon.constants.include?(:Rabl)
52
+ raise "Possible wrong require order problem - try to add `gem 'rabl'` before `gem 'gon'` in your Gemfile"
53
+ end
54
data, options = Gon::Rabl.handler(args)
55
56
store_builder_data 'rabl', data, options
57
58
59
def jbuilder(*args)
60
+ unless Gon.constants.include?(:Jbuilder)
61
+ raise "Possible wrong require order problem - try to add `gem 'jbuilder'` before `gem 'gon'` in your Gemfile"
62
63
data, options = Gon::Jbuilder.handler(args)
64
65
store_builder_data 'jbuilder', data, options
0 commit comments