<NME> configuration.rb
<BEF> module Refinery
  module Images


    config_accessor :dragonfly_insert_before, :max_image_size, :pages_per_dialog,
                    :pages_per_admin_index, :pages_per_dialog_that_have_size_options,
                    :user_image_sizes

    self.dragonfly_insert_before = 'ActionDispatch::Callbacks'
    self.max_image_size = 5242880

    self.max_image_size = 5_242_880
    self.pages_per_dialog = 18
    self.user_image_sizes = { :small => '110x110>',
                              :medium => '225x255>',
                              :large => '450x450>' }
  end
end
    self.user_image_ratios = {
      '16/9': '1.778',
      '4/3': '1.333',
      '1:1': 1
    }
    self.allowed_mime_types = %w[image/jpeg image/png image/gif image/tiff]
    self.allowed_mime_types_msg = self.allowed_mime_types.to_sentence(last_word_connector: ' or ')
    self.image_views = [:grid, :list]
    self.preferred_image_view = :grid

    # Images should always use these changes to the dragonfly defaults
    self.dragonfly_name         = :refinery_images
    self.dragonfly_plugin       = :imagemagick

    # Dragonfly processor to strip image of all profiles and comments (imagemagick conversion -strip)
    self.dragonfly_processors   = [{
      name: :strip,
      block: -> (content) { content.process!(:convert, '-strip') }
    }]
  end

end

<MSG> Move image_views and preferred_image_view settings to Refinery::Images.

<DFF> @@ -4,7 +4,7 @@ module Refinery
 
     config_accessor :dragonfly_insert_before, :max_image_size, :pages_per_dialog,
                     :pages_per_admin_index, :pages_per_dialog_that_have_size_options,
-                    :user_image_sizes
+                    :user_image_sizes, :image_views, :preferred_image_view
 
     self.dragonfly_insert_before = 'ActionDispatch::Callbacks'
     self.max_image_size = 5242880
@@ -14,5 +14,7 @@ module Refinery
     self.user_image_sizes = { :small => '110x110>',
                               :medium => '225x255>',
                               :large => '450x450>' }
+    self.image_views = [:grid, :list]
+    self.preferred_image_view = :grid
   end
 end

{'addition_count': 3, 'commit_subject': 'Move image_views and preferred_image_view settings to Refinery::Images.', 'deletion_count': 1, 'file_extension': '.rb', 'lang': 'rb', 'license': 'mit', 'repo_name': 'refinery/refinerycms'}