Module: RailsTurboFlash::Options
- Included in:
- Configuration
- Defined in:
- lib/rails_turbo_flash/config.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(cls) ⇒ Object
23 24 25 |
# File 'lib/rails_turbo_flash/config.rb', line 23 def self.included(cls) cls.extend(ClassMethods) end |
Instance Method Details
#set_defaults! ⇒ Object
17 18 19 20 21 |
# File 'lib/rails_turbo_flash/config.rb', line 17 def set_defaults! self.class.schema.each do |name, default| instance_variable_set("@#{name}", default) end end |