Class: Bently::Cancan

Inherits:
RailsRecipe show all
Defined in:
lib/bently/recipe/cancan.rb

Constant Summary

Constants inherited from RubyRecipe

RubyRecipe::GEMFILE

Instance Method Summary collapse

Methods inherited from RailsRecipe

#generate, #migrate

Methods inherited from RubyRecipe

#bundle, #gem, #gem_group

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

#initializeCancan

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