lib/enjoy/models/mongoid/seo.rb in enjoy_cms-0.3.0.4 vs lib/enjoy/models/mongoid/seo.rb in enjoy_cms-0.3.1
- old
+ new
@@ -4,10 +4,14 @@
module Seo
extend ActiveSupport::Concern
include Enjoy::MongoidPaperclip
included do
+ if defined?(RailsAdminComments)
+ include RailsAdminComments::Commentable
+ end
+
field :name, type: String, localize: Enjoy.config.localize
field :h1, type: String, localize: Enjoy.config.localize
field :title, type: String, localize: Enjoy.config.localize
field :keywords, type: String, localize: Enjoy.config.localize
@@ -26,10 +30,10 @@
{thumb: "800x600>"}
end
def og_image_convert_options
{}
end
-
+
end
end
end
end