Class: Refinery::AdminBaseController

Inherits:
ApplicationController show all
Defined in:
vendor/plugins/refinery/lib/refinery/admin_base_controller.rb

Direct Known Subclasses

Admin::BaseController

Instance Method Summary collapse

Methods inherited from ApplicationController

#from_dialog?, #home_page?, #just_installed?, #local_request?, #wymiframe

Methods included from Crud

append_features

Instance Method Details

#admin?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'vendor/plugins/refinery/lib/refinery/admin_base_controller.rb', line 9

def admin?
  true # we're in the admin base controller, so always true.
end

#searching?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'vendor/plugins/refinery/lib/refinery/admin_base_controller.rb', line 13

def searching?
  params[:search].present?
end