Class: Bently::Cancan
- Inherits:
-
RailsRecipe
- Object
- Recipe
- RubyRecipe
- RailsRecipe
- Bently::Cancan
- Defined in:
- lib/bently/recipe/cancan.rb
Constant Summary
Constants inherited from RubyRecipe
Instance Method Summary collapse
-
#initialize ⇒ Cancan
constructor
A new instance of Cancan.
Methods inherited from RailsRecipe
Methods inherited from RubyRecipe
Methods inherited from Recipe
#append, breakdown, category, #code, #create, description, homepage, #insert, #modify, #operate, #operations, #prepend, #remove, #requirement, #run, #say, title, #todo, #usage, version, #warn
Constructor Details
#initialize ⇒ Cancan
Returns a new instance of Cancan.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/bently/recipe/cancan.rb', line 9 def initialize gem 'cancan' bundle generate 'cancan:ability' todo 'See Defining Abilities: https://github.com/ryanb/cancan/wiki/defining-abilities' todo 'See Checking Abilities: https://github.com/ryanb/cancan/wiki/checking-abilities' todo 'See Authorizing Controller Actions: https://github.com/ryanb/cancan/wiki/authorizing-controller-actions' todo 'See Exception Handling: https://github.com/ryanb/cancan/wiki/exception-handling' todo 'See Ensure Authorization: https://github.com/ryanb/cancan/wiki/Ensure-Authorization' end |