Class: DeviseImprintable::Generators::DeviseImprintableGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- DeviseImprintable::Generators::DeviseImprintableGenerator
- Defined in:
- lib/generators/devise_imprintable/devise_imprintable_generator.rb
Instance Method Summary collapse
Instance Method Details
#inject_devise_invitable_content ⇒ Object
9 10 11 12 |
# File 'lib/generators/devise_imprintable/devise_imprintable_generator.rb', line 9 def inject_devise_invitable_content path = File.join("app", "models", "#{file_path}.rb") inject_into_file(path, "imprintable, :", :after => "devise :") if File.exists?(path) end |