lib/generators/hancock/cms/templates/model.erb in hancock_cms-1.0.2.3 vs lib/generators/hancock/cms/templates/model.erb in hancock_cms-2.0.0
- old
+ new
@@ -1,21 +1,21 @@
class <%= camelcased_class_name %>
include Hancock::Model
# include Hancock::Enableable
+ # include Hancock::Cacheable
# include ManualSlug
- # include Hancock::Cache::Cacheable
- # def self.default_cache_keys
- # []
- # end
-
# acts_as_nested_set
# scope :sorted, -> { order_by([:lft, :asc]) }
field :name
# manual_slug :name
+ # def self.default_cache_keys
+ # []
+ # end
+
############# rails_admin ##############
#
# def self.admin_can_user_defined_actions
# [].freeze
# end
@@ -34,8 +34,9 @@
rails_admin do
# field :enabled, :toggle
field :name
# group :url, &Hancock::Admin.url_block
+ # group :cache, &Hancock::Admin.caching_block
end
end