Class: FastTrack::DeviseWithProfile
Overview
Devise User with a Profile class, for storing personal information about the user.
Instance Attribute Summary
Attributes inherited from Track
Instance Method Summary collapse
Methods inherited from Track
before_migrate, before_migrate_block, #create_file, #g, #gem, #gem_group, gemfile, gemfile_block, #generate, #initialize, #rake, #read_file, #route, #run
Methods included from TrackMethods
#bundle_install, #config, #db_migrate!, #migration, #model
Constructor Details
This class inherits a constructor from FastTrack::Track
Instance Method Details
#invoke ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'lib/tracks/devise.rb', line 45 def invoke model config.profile_class, { "first_name" => "string", "last_name" => "string", "favorite_color" => "string", "#{config.user_class}_id" => "integer" } end |