lib/mls.rb in mls-0.0.10 vs lib/mls.rb in mls-0.0.11
- old
+ new
@@ -13,9 +13,18 @@
def site
env == 'production' ? 'http://mls.42floors.com' : 'http://staging.mls.42floors.com'
end
+ def asset_host=(host)
+ @asset_host = host
+ end
+
+ def asset_host
+ return @asset_host if @asset_host
+ env == 'production' ? 'assets.42floors.com' : 's3.amazonaws.com/staging-assets.42floors.com'
+ end
+
end
class Resource < ActiveResource::Base
self.site = MLS.site
self.user = nil