Method: Rolify::Generators::UserGenerator#role_association
- Defined in:
- lib/generators/rolify/user_generator.rb
#role_association ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/generators/rolify/user_generator.rb', line 30 def role_association if role_cname != "Role" " :role_cname => '#{role_cname.camelize}'" else "" end end |