class Mongoid::Generators::DeviseGenerator
def generate_model
def generate_model invoke "mongoid:model", [name] unless model_exists? && behavior == :invoke end
def inject_devise_content
def inject_devise_content inject_into_file model_path, model_contents, :after => "include Mongoid::Document\n" if model_exists? end
def inject_field_types
def inject_field_types inject_into_file model_path, migration_data, :after => "include Mongoid::Document\n" if model_exists? end
def migration_data
def migration_data atabase authenticatable d :email, :type => String, :default => "" d :encrypted_password, :type => String, :default => "" ecoverable d :reset_password_token, :type => String d :reset_password_sent_at, :type => Time ememberable d :remember_created_at, :type => Time rackable d :sign_in_count, :type => Integer, :default => 0 d :current_sign_in_at, :type => Time d :last_sign_in_at, :type => Time d :current_sign_in_ip, :type => String d :last_sign_in_ip, :type => String onfirmable eld :confirmation_token, :type => String eld :confirmed_at, :type => Time eld :confirmation_sent_at, :type => Time eld :unconfirmed_email, :type => String # Only if using reconfirmable ockable eld :failed_attempts, :type => Integer, :default => 0 # Only if lock strategy is :failed_attempts eld :unlock_token, :type => String # Only if unlock strategy is :email or :both eld :locked_at, :type => Time oken authenticatable eld :authentication_token, :type => String end