Class: RolesGeneric::Generators::RolesGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
RailsAssist::Artifact::Model
Defined in:
lib/generators/roles_generic/roles/roles_generator.rb

Instance Method Summary collapse

Instance Method Details

#apply_role_strategyObject

hook_for :orm



18
19
20
21
22
# File 'lib/generators/roles_generic/roles/roles_generator.rb', line 18

def apply_role_strategy
  insert_into_model name do
    insertion_text
  end
end