app/models/ems/news.rb in ems-0.0.9 vs app/models/ems/news.rb in ems-0.1.0
- old
+ new
@@ -48,10 +48,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, { :image228x126 => "228x126", :path => "/ems/news/:style/:filename" }.merge(PAPERCLIP_STORAGE_OPTIONS)
+ has_attached_file :image, :styles => {:image228x126 => "228x126"}
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