Sha256: 60adc131792231fefa01b893ae69af8979d7b056f4daa5d1e9e0d5b93098e063
Contents?: true
Size: 498 Bytes
Versions: 2
Compression:
Stored size: 498 Bytes
Contents
module DeviseImprintable module Generators class DeviseImprintableGenerator < Rails::Generators::NamedBase namespace "devise_imprintable" desc "Add :imprintable directive in the given model. Also generate migration for ActiveRecord" 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 hook_for :orm end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise_imprintable-0.0.3 | lib/generators/devise_imprintable/devise_imprintable_generator.rb |
devise_imprintable-0.0.2 | lib/generators/devise_imprintable/devise_imprintable_generator.rb |