# File lib/cimi/helpers.rb, line 103 def self.check_capability(opts={}) Sinatra::Rabbit.set :check_capability, opts[:for] end
# File lib/cimi/helpers.rb, line 107 def self.check_features(opts={}) Sinatra::Rabbit.set :check_features, opts[:for] end
# File lib/cimi/helpers.rb, line 92 def self.new_route_for(route, &block) get route_for('/' + route.to_s + '/new') do instance_eval(&block) if block_given? respond_to do |format| format.html do haml :"#{route}/new" end end end end
# File lib/cimi/helpers.rb, line 111 def self.route_for(url) "#{settings.root_url}#{url}" end