Method: Hyrax::PresenterFactory#initialize
- Defined in:
- app/presenters/hyrax/presenter_factory.rb
#initialize(ids:, presenter_class:, presenter_args:) ⇒ PresenterFactory
Returns a new instance of PresenterFactory.
22 23 24 25 26 27 |
# File 'app/presenters/hyrax/presenter_factory.rb', line 22 def initialize(ids:, presenter_class:, presenter_args:) @ids = ids @presenter_class = presenter_class # In moving from splat args to named parameters, passing the parameters is a bit off. @presenter_args = presenter_args.nil? ? [nil] : presenter_args end |