lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/asset.rb in glebtv-ckeditor-4.6.0 vs lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/asset.rb in glebtv-ckeditor-4.7.3
- old
+ new
@@ -1,7 +1,7 @@
class Ckeditor::Asset
include Ckeditor::Orm::Mongoid::AssetBase
- delegate :url, :current_path, :size, :content_type, :filename, :to => :data
+ delegate :url, :current_path, :content_type, to: :data
- validates_presence_of :data
+ validates :data, presence: true
end