lib/generators/curupira/install/install_generator.rb in curupira-0.1.3 vs lib/generators/curupira/install/install_generator.rb in curupira-0.1.4

- old
+ new

@@ -15,30 +15,15 @@ def copy_initializer copy_file 'sorcery.rb', 'config/initializers/sorcery.rb' end - def create_role_group_user - create_model "role_group_user" - create_migration_to("role_group_user") - end - - def create_authorization - create_model "authorization" - create_migration_to("authorization") - end - def create_feature create_model "feature" create_migration_to("feature") end - def create_groups - create_model "group" - create_migration_to("group") - end - def create_role create_model "role" create_migration_to("role") end @@ -52,12 +37,27 @@ else copy_migration 'sorcery_core.rb' end end + def create_groups + create_model "group" + create_migration_to("group") + end + def create_group_user create_model "group_user" create_migration_to("group_user") + end + + def create_authorization + create_model "authorization" + create_migration_to("authorization") + end + + def create_role_group_user + create_model "role_group_user" + create_migration_to("role_group_user") end def create_role_group create_model "role_group" create_migration_to("role_group")