Sha256: a68407d8a76832f12843f1351f3b5cdb8a47914f257e6fd171572d87c4ec58ba

Contents?: true

Size: 840 Bytes

Versions: 6

Compression:

Stored size: 840 Bytes

Contents

class <%= camelcased_class_name %>
  include Hancock::Model
  # include Hancock::Enableable
  # 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

  ############# rails_admin ##############
  #
  # def self.admin_can_user_defined_actions
  #   [].freeze
  # end
  # def self.admin_cannot_user_defined_actions
  #   [].freeze
  # end
  # def self.manager_can_user_defined_actions
  #   [].freeze
  # end
  # def self.manager_cannot_user_defined_actions
  #   [].freeze
  # end
  # def self.rails_admin_user_defined_visible_actions
  #   [].freeze
  # end

  rails_admin do
    # field :enabled, :toggle
    field :name
    # group :url, &Hancock::Admin.url_block
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hancock_cms-2.0.1.3 lib/generators/hancock/cms/templates/model.erb
hancock_cms-1.0.2.3 lib/generators/hancock/cms/templates/model.erb
hancock_cms-2.0.1.2 lib/generators/hancock/cms/templates/model.erb
hancock_cms-2.0.1.1 lib/generators/hancock/cms/templates/model.erb
hancock_cms-1.0.2.2 lib/generators/hancock/cms/templates/model.erb
hancock_cms-1.0.1 lib/generators/hancock/cms/templates/model.erb