Sha256: b0dcc5a7a317d34965e368415caad827292bfc15c577c5edb5fc2989152e803b

Contents?: true

Size: 1.4 KB

Versions: 12

Compression:

Stored size: 1.4 KB

Contents

require 'pageflow-external-links'

module Pageflow
  module LinkmapPage
    class Engine < Rails::Engine
      isolate_namespace Pageflow::LinkmapPage

      config.autoload_paths << File.join(config.root, 'lib')
      config.i18n.load_path += Dir[config.root.join('config', 'locales', '**', '*.yml').to_s]

      initializer 'pageflow_linkmap_page.paperclip' do
        Paperclip.configure do |config|
          config.register_processor(:pageflow_linkmap_page_image_colors,
                                    Pageflow::LinkmapPage::PaperclipProcessors::Colors)

          config.register_processor(:pageflow_linkmap_page_color_mask,
                                    Pageflow::LinkmapPage::PaperclipProcessors::ColorMask)

          config.register_processor(:pageflow_linkmap_page_invoke_callback,
                                    Pageflow::LinkmapPage::PaperclipProcessors::InvokeCallback)

          config.register_processor(:pageflow_linkmap_page_image_dimensions,
                                    Pageflow::LinkmapPage::PaperclipProcessors::ImageDimensions)
        end
      end

      config.generators do |g|
        g.test_framework :rspec,:fixture => false
        g.fixture_replacement :factory_girl, :dir => 'spec/factories'
        g.assets false
        g.helper false
      end

      initializer 'pageflow_linkmap_page.paperclip' do
        Paperclip::DataUriAdapter.register
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pageflow-linkmap-page-2.9.0 lib/pageflow/linkmap_page/engine.rb
pageflow-linkmap-page-2.8.0 lib/pageflow/linkmap_page/engine.rb
pageflow-linkmap-page-2.7.1 lib/pageflow/linkmap_page/engine.rb
pageflow-linkmap-page-2.7.0 lib/pageflow/linkmap_page/engine.rb
pageflow-linkmap-page-2.6.1 lib/pageflow/linkmap_page/engine.rb
pageflow-linkmap-page-2.6.0 lib/pageflow/linkmap_page/engine.rb
pageflow-linkmap-page-2.5.0 lib/pageflow/linkmap_page/engine.rb
pageflow-linkmap-page-2.4.0 lib/pageflow/linkmap_page/engine.rb
pageflow-linkmap-page-2.3.0 lib/pageflow/linkmap_page/engine.rb
pageflow-linkmap-page-2.2.0 lib/pageflow/linkmap_page/engine.rb
pageflow-linkmap-page-2.1.0 lib/pageflow/linkmap_page/engine.rb
pageflow-linkmap-page-2.0.0 lib/pageflow/linkmap_page/engine.rb