app/models/ems/news.rb in ems-0.0.3 vs app/models/ems/news.rb in ems-0.0.4
- old
+ new
@@ -45,10 +45,10 @@
has_and_belongs_to_many :news, :join_table => 'ems_news_news', :association_foreign_key => "related_id"
accepts_nested_attributes_for :news
has_and_belongs_to_many :reports, :join_table => 'ems_news_reports'
accepts_nested_attributes_for :reports
- has_attached_file :image, :styles => { :image228x126 => "228x126" }
+ has_attached_file :image, :styles => { :image228x126 => "228x126" }.merge(PAPERCLIP_STORAGE_OPTIONS)
has_many :assets, :as => :assetable
accepts_nested_attributes_for :assets, :allow_destroy => true
# Method to make sure we have all our default values set on the object