lib/beatport/collection.rb in beatport-0.1.1 vs lib/beatport/collection.rb in beatport-0.1.2

- old
+ new

@@ -19,10 +19,10 @@ instance_variable_set(:"@#{k}", v) end @results = if klass == :auto data['results'].map do |r| - item_klass = Inflector.constantize("Beatport::Catalog::#{r['type'].capitalize}") + item_klass = Support::Inflector.constantize("Beatport::Catalog::#{r['type'].capitalize}") item_klass.new(r) end else data['results'].map { |r| klass.new(r) } end \ No newline at end of file