Class: ApplicationController
- Includes:
- EasyRoleRequirementSystem, RoleRequirementSystem, SslRequirement
- Defined in:
- app/controllers/application.rb
Overview
Filters added to this controller apply to all controllers in the application. Likewise, all the methods added will be available for all controllers.
Direct Known Subclasses
Instance Method Summary collapse
Methods included from EasyRoleRequirementSystem
Methods included from EasyRoleRequirementSystem::InstanceMethods
Methods included from RoleRequirementSystem
Instance Method Details
#admin_created? ⇒ Boolean
19 20 21 |
# File 'app/controllers/application.rb', line 19 def admin_created? User.first(:include => :roles, :conditions => ["roles.name = 'admin'"]) end |