lib/gon/sinatra/store.rb in gon-sinatra-0.1.0 vs lib/gon/sinatra/store.rb in gon-sinatra-0.1.1
- old
+ new
@@ -36,10 +36,12 @@
@env[name] = value
end
alias :set :set_variable
def rabl(view_path, options = {})
- raise Exception.new("You must require rabl and register Gon::Sinatra::Rabl to use rabl") unless defined? Rabl
+ unless defined?(::Rabl)
+ raise Exception.new("You must require rabl and register Gon::Sinatra::Rabl to use rabl")
+ end
unless options[:instance]
raise ArgumentError.new("You should pass :instance in options: :instance => self")
end