module Hancock::Gallery include Hancock::PluginConfiguration def self.config_class Configuration end class Configuration attr_accessor :localize attr_accessor :cache_support attr_accessor :model_settings_support attr_accessor :user_abilities_support attr_accessor :ra_comments_support attr_accessor :watermark_support attr_accessor :original_image_hash_secret attr_accessor :default_convert_options def initialize @localize = Hancock.config.localize @cache_support = defined?(Hancock::Cache) @model_settings_support = defined?(RailsAdminModelSettings) @user_abilities_support = defined?(RailsAdminUserAbilities) @ra_comments_support = defined?(RailsAdminComments) @watermark_support = defined?(PaperclipWatermark) @original_image_hash_secret = Rails.application.secrets.secret_key_base @default_convert_options = {all: ["-quality", "75", "-strip"]} end end end