Sha256: 681956205cad0e237391780c19995b2369f502656c93ebb07759f896bad26a9c
Contents?: true
Size: 467 Bytes
Versions: 26
Compression:
Stored size: 467 Bytes
Contents
require 'generators/devise/orm_helpers' module Mongoid module Generators class DeviseGenerator < Rails::Generators::NamedBase include Devise::Generators::OrmHelpers def generate_model invoke "mongoid:model", [name] unless model_exists? && behavior == :invoke end def inject_devise_content inject_into_file model_path, model_contents, :after => "include Mongoid::Document\n" if model_exists? end end end end
Version data entries
26 entries across 25 versions & 3 rubygems