lib/ine/places/place.rb in ine-places-0.1.3 vs lib/ine/places/place.rb in ine-places-0.1.4
- old
+ new
@@ -5,9 +5,13 @@
raise ArgumentError if province_id.blank?
collection_klass.records.select{ |place| place.province_id == province_id }
end
+ def data
+ @data ||= OpenStruct.new
+ end
+
private
def self.collection_klass
INE::Places::PlacesCollection
end