Module: Cantango::Generators::Basic

Included in:
Base, PermitGenerator
Defined in:
lib/generators/cantango/basic.rb

Instance Method Summary collapse

Instance Method Details

#accountObject



29
30
31
# File 'lib/generators/cantango/basic.rb', line 29

def 
  options[:account]
end

#admin_logicObject



17
18
19
20
21
# File 'lib/generators/cantango/basic.rb', line 17

def admin_logic
  %{
    can :manage, :all
    }
end

#base_logicObject



12
13
14
15
# File 'lib/generators/cantango/basic.rb', line 12

def base_logic
  %{
   }
end

#guest_logicObject



23
24
25
26
27
# File 'lib/generators/cantango/basic.rb', line 23

def guest_logic
  %{
    can :read, :all
    }
end

#license_logicObject



8
9
10
# File 'lib/generators/cantango/basic.rb', line 8

def license_logic
  ''
end

#rules_logicObject



4
5
6
# File 'lib/generators/cantango/basic.rb', line 4

def rules_logic
  ''
end