Class: Cream::Rails::Config
- Inherits:
-
Object
- Object
- Cream::Rails::Config
- Defined in:
- lib/cream/rails/config.rb
Instance Attribute Summary collapse
-
#roles ⇒ Object
Returns the value of attribute roles.
-
#user_types ⇒ Object
Returns the value of attribute user_types.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(options = {}) ⇒ Config
Returns a new instance of Config.
6 7 8 9 |
# File 'lib/cream/rails/config.rb', line 6 def initialize = {} self.roles ||= [:roles] self.user_types ||= [:user_types] end |
Instance Attribute Details
#roles ⇒ Object
Returns the value of attribute roles.
4 5 6 |
# File 'lib/cream/rails/config.rb', line 4 def roles @roles end |
#user_types ⇒ Object
Returns the value of attribute user_types.
4 5 6 |
# File 'lib/cream/rails/config.rb', line 4 def user_types @user_types end |