class ActiveRecord::Generators::VoltexRoleGenerator
Private Instance Methods
existing_migration()
click to toggle source
# File lib/generators/active_record/voltex_role_generator.rb, line 13 def existing_migration # There won't be a existing migration. end
model_content()
click to toggle source
# File lib/generators/active_record/voltex_role_generator.rb, line 17 def model_content "# Voltex. # Please review the following content. has_many :#{Voltex.users_name} has_and_belongs_to_many :#{Voltex.permissions_name}" end