module Strategic::ExtraRailsMethods

Public Instance Methods

strategy_name=(string) click to toggle source
# File lib/strategic.rb, line 36
def strategy_name=(string)
  self['strategy_name'] = string
  strategy_class = self.class.strategy_class_for(string)
  @strategy = strategy_class&.new(self)
end