lib/mls/models/flyer.rb in mls-0.13.0 vs lib/mls/models/flyer.rb in mls-0.14.0
- old
+ new
@@ -18,10 +18,10 @@
def self.create(attrs)
attrs[:file].rewind
url = MLS.url.dup
url.user = nil
- url.path = "/api/flyers"
+ url.path = "/flyers"
if attrs[:subject]
attrs[:subject_id] = attrs[:subject].id
attrs[:subject_type] = attrs[:subject].class.name.split("::").last
attrs.delete(:subject)