Class: Groupify::ActiveRecord::ModelGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/groupify/active_record/model/model_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_group_membership_model_fileObject



10
11
12
# File 'lib/generators/groupify/active_record/model/model_generator.rb', line 10

def copy_group_membership_model_file
  copy_file "group_membership.rb", "app/models/group_membership.rb"
end

#copy_group_model_fileObject



6
7
8
# File 'lib/generators/groupify/active_record/model/model_generator.rb', line 6

def copy_group_model_file
  copy_file "group.rb", "app/models/group.rb"
end