class EmberCLI::Routes::EmberController
Public Instance Methods
handle()
click to toggle source
# File lib/ember-cli/routes/ember_controller.rb, line 7 def handle if Rails.env.production? deploy = EmberCLI::Deploy::Redis.new(namespace: "frontend") render html: deploy.html.html_safe, layout: false else render file: "#{params[:dist_path]}/index.html", layout: false end end
handle_asset()
click to toggle source
in development/test only
# File lib/ember-cli/routes/ember_controller.rb, line 17 def handle_asset filename = "#{params[:filename]}.#{params[:format]}" render file: "#{params[:dist_path]}/assets/#{filename}", layout: false end