lib/hancock/gallery/configuration.rb in hancock_cms_gallery-1.0.0 vs lib/hancock/gallery/configuration.rb in hancock_cms_gallery-1.0.2

- old
+ new

@@ -7,20 +7,32 @@ 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