class SingularResource::FinderStrategizer
Public Class Methods
strategy_for(name, options={})
click to toggle source
# File lib/singular_resource/finder_strategizer.rb, line 7 def self.strategy_for(name, options={}) strategy_class = options.delete(:strategy) || Strategies::StrongParametersStrategy options = options.merge(name: name) Finder.new(name, strategy_class, options) end