Sha256: 7cede12514abfd2561d68c9a14e92813930a8f399711add6b48859e5b2bef81a

Contents?: true

Size: 1.27 KB

Versions: 15

Compression:

Stored size: 1.27 KB

Contents

Ecm::Pictures.configure do |config|
  # Accepted markup languages
  #
  # default: config.markup_languages = %w[ textile ]
  config.markup_languages = %w( textile )

  # Default markup language
  #
  # default: config.default_markup_language = 'textile'
  config.default_markup_language = 'textile'

  # Paperclip options
  #
  # default:     config.paperclip_options = {
  #                styles: {
  #                  small_thumb:   "80x60",
  #                  medium_thumb:  "160x120",
  #                  default_thumb: "260x180"
  #                }
  #              }
  config.paperclip_options = {
    styles: {
      small_thumb:   '80x60',
      medium_thumb:  '160x120',
      default_thumb: '260x180'
    }
  }

  # Set the base controller for the contact form
  #
  # Default: config.base_controller = 'ApplicationController'
  #
  config.base_controller = 'ApplicationController'

  # Adds <notextile> tags around the to fix html output.
  #
  # Default: config.prevent_textile_rendering_in_html = true
  #
  config.prevent_textile_rendering_in_html = true

  # Render picture galleries in the index view as :thumbnail
  # or :media_object.
  #
  # Default: config.render_picture_gallery_index_as = :media_object
  #
  config.render_picture_gallery_index_as = :media_object
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
ecm_news2_backend-1.2.6 spec/dummy/config/initializers/ecm_pictures.rb
ecm_news2_backend-1.2.5 spec/dummy/config/initializers/ecm_pictures.rb
ecm_news2_backend-1.2.4 spec/dummy/config/initializers/ecm_pictures.rb
ecm_news2_backend-1.2.3 spec/dummy/config/initializers/ecm_pictures.rb
ecm_news2_backend-1.2.2 spec/dummy/config/initializers/ecm_pictures.rb
ecm_news2_backend-1.2.1 spec/dummy/config/initializers/ecm_pictures.rb
ecm_news2_backend-1.2.0 spec/dummy/config/initializers/ecm_pictures.rb
ecm_pictures2-2.1.4 lib/generators/ecm/pictures/install/templates/initializer.rb
ecm_pictures2-2.1.3 lib/generators/ecm/pictures/install/templates/initializer.rb
ecm_news2_backend-1.1.3 spec/dummy/config/initializers/ecm_pictures.rb
ecm_news2_backend-1.1.1 spec/dummy/config/initializers/ecm_pictures.rb
ecm_pictures2-2.1.2 lib/generators/ecm/pictures/install/templates/initializer.rb
ecm_news2_backend-1.1.0 spec/dummy/config/initializers/ecm_pictures.rb
ecm_pictures2-2.1.1 lib/generators/ecm/pictures/install/templates/initializer.rb
ecm_pictures2-2.1.0 lib/generators/ecm/pictures/install/templates/initializer.rb