Module: Refinery::Admin::BaseController::InstanceMethods
- Defined in:
- lib/refinery/admin/base_controller.rb
Instance Method Summary collapse
Instance Method Details
#admin? ⇒ Boolean
25 26 27 |
# File 'lib/refinery/admin/base_controller.rb', line 25 def admin? true # we're in the admin base controller, so always true. end |
#error_404(exception = nil) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/refinery/admin/base_controller.rb', line 33 def error_404(exception=nil) # fallback to the default 404.html page. render :file => Rails.root.join("public", "404.html").cleanpath.to_s, :layout => false, :status => 404 end |
#searching? ⇒ Boolean
29 30 31 |
# File 'lib/refinery/admin/base_controller.rb', line 29 def searching? params[:search].present? end |