lib/angular_sprinkles/mixins/controller.rb in angular_sprinkles-0.3.0 vs lib/angular_sprinkles/mixins/controller.rb in angular_sprinkles-0.3.1

- old
+ new

@@ -24,12 +24,12 @@ }) super end - def bindable(object) + def ng_bindable(object) object = object.to_a if object.is_a?(::ActiveRecord::Relation) - object.map!(&method(:bindable)) if object.is_a?(Array) + object.map!(&method(:ng_bindable)) if object.is_a?(Array) key = @_sprinkles.key_generator.call(object) @_sprinkles.constructor_collection.push(object, key) ModelDecorator.new({ object: object, key: key,