app/models/ckeditor/asset.rb in georgia-0.7.3 vs app/models/ckeditor/asset.rb in georgia-0.7.4
- old
+ new
@@ -1,13 +1,18 @@
class Ckeditor::Asset < ActiveRecord::Base
+ include Georgia::Indexer::Adapter
+ is_searchable({
+ solr: Georgia::Indexer::SolrAdapter::CkeditorAssetExtension,
+ tire: Georgia::Indexer::TireAdapter::CkeditorAssetExtension,
+ })
+
# to allow media_path in to_jq_upload
include Georgia::Engine.routes.url_helpers
include Ckeditor::Orm::ActiveRecord::AssetBase
include Georgia::Concerns::Taggable
- include Georgia::Indexer
delegate :url, :current_path, :content_type, to: :data
mount_uploader :data, CkeditorAttachmentFileUploader, mount_on: :data_file_name
@@ -37,9 +42,7 @@
'25 KB to 100 KB' => 25..100,
'100 KB to 500 KB' => 100..500,
'500 KB to 1 MB' => 500..1000,
'> 1 MB' => 1000..999999
}
-
-
end
\ No newline at end of file