Module: Strategic::ExtraRailsMethods
- Defined in:
- lib/strategic.rb
Instance Method Summary collapse
Instance Method Details
#strategy_name=(string) ⇒ Object
37 38 39 40 41 |
# File 'lib/strategic.rb', line 37 def strategy_name=(string) self['strategy_name'] = string strategy_class = self.class.strategy_class_for(string) @strategy = strategy_class&.new(self) end |