# File lib/deltacloud/helpers.rb, line 86 def self.check_features(opts={}) Sinatra::Rabbit.set :check_features, opts[:for] end
# File lib/deltacloud/helpers.rb, line 75 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/deltacloud/helpers.rb, line 90 def self.route_for(url) "#{settings.root_url}#{url}" end