Sha256: cf6587f2628f7236ca94aca7fb434958cc1c90f84379b791a3b55babea85de6e

Contents?: true

Size: 799 Bytes

Versions: 11

Compression:

Stored size: 799 Bytes

Contents

module LoldesignPublisher
  module Rails
    class Engine < ::Rails::Engine
      initializer "static assets" do |app|
        app.middleware.use ::ActionDispatch::Static, "#{root}/public"
      end

      initializer 'config' do |app|
        LoldesignPublisher.root_path = app.root

        LoldesignPublisher.read_config()

        app.config.assets.precompile += %w(loldesign_publisher/publisher.css loldesign_publisher/publisher.js)
      end

      config.to_prepare do
        ApplicationController.helper(LoldesignPublisher::PublisherHelper)
      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
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
loldesign_publisher-2.0.0 lib/loldesign_publisher/engine.rb
loldesign_publisher-1.5.1 lib/loldesign_publisher/engine.rb
loldesign_publisher-1.5.0 lib/loldesign_publisher/engine.rb
loldesign_publisher-1.4.0 lib/loldesign_publisher/engine.rb
loldesign_publisher-1.3.6 lib/loldesign_publisher/engine.rb
loldesign_publisher-1.3.4 lib/loldesign_publisher/engine.rb
loldesign_publisher-1.3.3 lib/loldesign_publisher/engine.rb
loldesign_publisher-1.3.2 lib/loldesign_publisher/engine.rb
loldesign_publisher-1.3.1 lib/loldesign_publisher/engine.rb
loldesign_publisher-1.3.0 lib/loldesign_publisher/engine.rb
loldesign_publisher-1.1.0 lib/loldesign_publisher/engine.rb