lib/gon.rb in gon-2.2.2 vs lib/gon.rb in gon-2.3.0
- old
+ new
@@ -1,16 +1,16 @@
-if RUBY_VERSION > '1.9' && defined?(Jbuilder)
+if defined?(Jbuilder)
gem 'blankslate'
end
require 'action_view'
require 'action_controller'
require 'gon/helpers'
require 'gon/escaper'
if defined?(Rabl)
require 'gon/rabl'
end
-if RUBY_VERSION > '1.9' && defined?(Jbuilder)
+if defined?(Jbuilder)
require 'gon/jbuilder'
end
module Gon
class << self
@@ -86,10 +86,9 @@
end
end
alias_method :orig_jbuilder, :jbuilder
def jbuilder(*options)
- raise NoMethodError.new('You can use Jbuilder support only in 1.9+') if RUBY_VERSION < '1.9'
orig_jbuilder(*options)
end
private