Sha256: 5982b922bdb5122008b198132cc57461f59bf404634a906d6ae978b017d3f70d
Contents?: true
Size: 1.91 KB
Versions: 1
Compression:
Stored size: 1.91 KB
Contents
module Hancock::Catalog include Hancock::PluginConfiguration def self.config_class Configuration end class Configuration attr_accessor :item_image_styles attr_accessor :items_per_page attr_accessor :item_images_image_styles attr_accessor :category_image_styles attr_accessor :category_per_page attr_accessor :category_images_image_styles attr_accessor :gallery_support attr_accessor :seo_support attr_accessor :pages_support attr_accessor :cache_support attr_accessor :insertions_support attr_accessor :breadcrumbs_on_rails_support attr_accessor :can_connect_items_with_pages attr_accessor :can_connect_category_with_pages attr_accessor :localize attr_accessor :model_settings_support attr_accessor :user_abilities_support attr_accessor :ra_comments_support attr_accessor :watermark_support def initialize @item_image_styles = { thumb: '128x128' } @items_per_page = 10 @item_images_image_styles = { thumb: '128x128' } @category_image_styles = { thumb: '128x128' } @category_per_page = 10 @category_images_image_styles = { thumb: '128x128' } @gallery_support = !!defined?(Hancock::Gallery) @seo_support = !!defined?(Hancock::Seo) @pages_support = !!defined?(Hancock::Pages) @cache_support = !!defined?(Hancock::Cache) @insertions_support = true @breadcrumbs_on_rails_support = !!defined?(BreadcrumbsOnRails) @can_connect_items_with_pages = true @can_connect_category_with_pages = true @localize = Hancock.config.localize @model_settings_support = !!defined?(RailsAdminModelSettings) @user_abilities_support = !!defined?(RailsAdminUserAbilities) @ra_comments_support = !!defined?(RailsAdminComments) @watermark_support = !!defined?(PaperclipWatermark) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hancock_cms_catalog-1.0.2 | lib/hancock/catalog/configuration.rb |