Module: Cantango::Generators::Basic
- Included in:
- Base, PermitGenerator
- Defined in:
- lib/generators/cantango/basic.rb
Instance Method Summary collapse
- #account ⇒ Object
- #admin_logic ⇒ Object
- #base_logic ⇒ Object
- #guest_logic ⇒ Object
- #license_logic ⇒ Object
- #rules_logic ⇒ Object
Instance Method Details
#account ⇒ Object
29 30 31 |
# File 'lib/generators/cantango/basic.rb', line 29 def account [:account] end |
#admin_logic ⇒ Object
17 18 19 20 21 |
# File 'lib/generators/cantango/basic.rb', line 17 def admin_logic %{ can :manage, :all } end |
#base_logic ⇒ Object
12 13 14 15 |
# File 'lib/generators/cantango/basic.rb', line 12 def base_logic %{ } end |
#guest_logic ⇒ Object
23 24 25 26 27 |
# File 'lib/generators/cantango/basic.rb', line 23 def guest_logic %{ can :read, :all } end |
#license_logic ⇒ Object
8 9 10 |
# File 'lib/generators/cantango/basic.rb', line 8 def license_logic '' end |
#rules_logic ⇒ Object
4 5 6 |
# File 'lib/generators/cantango/basic.rb', line 4 def rules_logic '' end |