Sha256: 0b0f77d2a9fe6fd86b467e83cb80da5569cc7f3898c7ddaf07e9ab3398884160
Contents?: true
Size: 1.13 KB
Versions: 8
Compression:
Stored size: 1.13 KB
Contents
class <%= camelcased_class_name %> < Hancock::EmbeddedElement embedded_in :<%= underscored_parent_class_name %>, class_name: "<%= camelcased_parent_class_name %>" def self.find(id) find_through(<%= camelcased_parent_class_name %>, '<%= underscored_pluralized_class_name %>', id) end # def image_styles # super # end # def image_jcrop_options # super # end ############# 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 def self.rails_admin_add_fields super end def self.rails_admin_add_config(config) super(config) end # rails_admin(&Hancock::Admin::EmbeddedElement.config(%NAV_LABEL%, rails_admin_add_fields) { |config| rails_admin(&Hancock::Admin::EmbeddedElement.config(rails_admin_add_fields) { |config| rails_admin_add_config(config) }) end
Version data entries
8 entries across 8 versions & 1 rubygems