lib/eco/language/models/collection.rb in eco-helpers-0.8.3 vs lib/eco/language/models/collection.rb in eco-helpers-0.8.4

- old
+ new

@@ -35,10 +35,10 @@ end #attr_reader :items - def initialize(data = [], klass:, factory: nil, handy: Eco::Common::Language.new) + def initialize(data = [], klass:, factory: nil, handy: Eco::Assets::Language.new) raise "Raise klass required, given: #{klass}" if !klass @klass = klass @factory = factory @handy = handy @items = to_klass(data)