Class: ApplicationController

Inherits:
Nyara::Controller show all
Defined in:
lib/nyara/templates/app/controllers/application_controller.rb

Direct Known Subclasses

HomeController

Instance Attribute Summary

Attributes inherited from Nyara::Controller

#request

Instance Method Summary collapse

Methods inherited from Nyara::Controller

#add_header_line, #clear_cookie, #content_type, #cookie, #delete_cookie, dispatch, #flash, #format, #halt, #handle_error, #header, #param, #partial, #path_to, process_reload, #redirect, #redirect_to, #render, #send_chunk, #send_data, #send_file, #send_header, #session, #set_cookie, #set_header, #sleep, #status, #stream, #url_to

Instance Method Details

#asset_path(path) ⇒ Object


4
5
6
7
8
9
10
# File 'lib/nyara/templates/app/controllers/application_controller.rb', line 4

def asset_path path
  if Nyara.production?
    Nyara::Config['manifest'][path]
  else
    path
  end
end