Class: FastTrack::Config
- Inherits:
-
Hash
- Object
- Hash
- FastTrack::Config
- Defined in:
- lib/fast_track/config.rb
Overview
TODO: This should take a YAML file and merge it with the defaults!
Instance Method Summary collapse
- #profile_class ⇒ Object
- #skip_views ⇒ Object
-
#user_class ⇒ Object
The user class for Devise.
Instance Method Details
#profile_class ⇒ Object
22 23 24 |
# File 'lib/fast_track/config.rb', line 22 def profile_class self[:profile_class] || "profile" end |
#skip_views ⇒ Object
26 27 28 |
# File 'lib/fast_track/config.rb', line 26 def skip_views self[:skip_views] || false end |
#user_class ⇒ Object
The user class for Devise. By default it’s just “User”
18 19 20 |
# File 'lib/fast_track/config.rb', line 18 def user_class self[:user_class] || "user" end |