Sha256: 723ee0bf48e98619eeb19aa0b04dff61dce8c3884d5a11fc26748cc78b87e506

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

Ecm::Videos.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'

  # Set the base controller
  #
  # Default: config.base_controller = 'FrontendController'
  #
  config.base_controller = 'FrontendController'

  # Set the paperclip options. This should be a proc. The proc
  # takes one parameter: The video model.
  #
  # Default: config.paperclip_options = Proc.new do |model|
  #            {
  #              styles: {
  #                small_thumb:   '80x60',
  #                medium_thumb:  '160x120',
  #                default_thumb: '260x180'
  #              }
  #            }
  #          end
  #
  config.paperclip_options = Proc.new do |model|
    { 
      styles: {
        small_thumb:   '80x60',
        medium_thumb:  '160x120',
        default_thumb: '260x180'
      }
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ecm_videos-1.0.0 lib/generators/ecm/videos/install/templates/initializer.rb