Sha256: 37690d2172fb703b53998018c2bbb9673cc28f8af40ca6f7e542fbb8d742ecec
Contents?: true
Size: 568 Bytes
Versions: 55
Compression:
Stored size: 568 Bytes
Contents
module DeviseInvitable module Generators class DeviseInvitableGenerator < Rails::Generators::NamedBase namespace "devise_invitable" desc "Add :invitable directive in the given model. Also generate migration for ActiveRecord" # def devise_generate_model # invoke "devise", [name] # end def inject_devise_invitable_content path = File.join("app", "models", "#{file_path}.rb") inject_into_file(path, "invitable, :", :after => "devise :") if File.exists?(path) end hook_for :orm end end end
Version data entries
55 entries across 55 versions & 1 rubygems