lib/forge/app/models/video.rb in forge-cli-0.0.18 vs lib/forge/app/models/video.rb in forge-cli-0.1.0
- old
+ new
@@ -13,9 +13,11 @@
validates_attachment_presence :video
validates_presence_of :title
before_update :revert_if_new_upload
+ # open up everything for mass assignment
+ attr_protected
def video=(filename)
self.video_file_name = filename.gsub('videos/', '')
end