lib/exvo_helpers/helpers.rb in exvo_helpers-0.0.6 vs lib/exvo_helpers/helpers.rb in exvo_helpers-0.0.7

- old
+ new

@@ -3,11 +3,11 @@ module Helpers # Dynamically define class methods class << self - %w(cdn cfs desktop themes blog contacts inbox music pics).each do |service| + %w(cdn cfs desktop themes blog contacts inbox music pics preview).each do |service| # def self.cdn_uri # "http://#{cdn_host}" # end define_method "#{service}_uri" do @@ -83,43 +83,47 @@ :themes_host => 'themes.exvo.com', :blog_host => 'blog.exvo.com', :contacts_host => 'contacts.exvo.com', :inbox_host => 'inbox.exvo.com', :music_host => 'music.exvo.com', - :pics_host => 'pics.exvo.com' + :pics_host => 'pics.exvo.com', + :preview_host => 'preview.exvo.com' }, :staging => { :cdn_host => 'staging.cdn.exvo.com', :cfs_host => 'staging.cfs.exvo.com', :desktop_host => 'www.exvo.co', :themes_host => 'staging.themes.exvo.com', :blog_host => 'staging.blog.exvo.com', :contacts_host => 'exvo-contacts-staging.heroku.com', :inbox_host => 'exvo-inbox-staging.heroku.com', :music_host => 'exvo-music-staging.heroku.com', - :pics_host => 'exvo-pictures-staging.heroku.com' + :pics_host => 'exvo-pictures-staging.heroku.com', + :preview_host => 'staging.preview.exvo.com' }, :development => { :cdn_host => 'www.exvo.local', :cfs_host => 'cfs.exvo.local', :desktop_host => 'www.exvo.local', :themes_host => 'themes.exvo.local', :blog_host => 'blog.exvo.local', :contacts_host => 'contacts.exvo.local', :inbox_host => 'inbox.exvo.local', :music_host => 'music.exvo.local', - :pics_host => 'pics.exvo.local' + :pics_host => 'pics.exvo.local', + :preview_host => 'preview.exvo.local' }, :test => { :cdn_host => 'www.exvo.local', :cfs_host => 'cfs.exvo.local', :desktop_host => 'www.exvo.local', :themes_host => 'themes.exvo.local', :blog_host => 'blog.exvo.local', :contacts_host => 'contacts.exvo.local', :inbox_host => 'inbox.exvo.local', :music_host => 'music.exvo.local', - :pics_host => 'pics.exvo.local' + :pics_host => 'pics.exvo.local', + :preview_host => 'preview.exvo.local' } } end end