Sha256: 5490f19d06431002434a21097388dcc5999910e860b26de2f5bc2c06eaaa77ce

Contents?: true

Size: 513 Bytes

Versions: 2

Compression:

Stored size: 513 Bytes

Contents

module SocialColorsRails
  class Engine < ::Rails::Engine
    isolate_namespace SocialColorsRails

    initializer "SocialColorsRails.mount_engine", before: :load_config_initializers do |app|
      Rails.application.routes.append do
        mount SocialColorsRails::Engine, at: "/social_colors_rails"
      end
    end

    initializer 'SocialColorsRails.action_controller' do |app|
      ActiveSupport.on_load :action_controller do
        helper SocialColorsRails::ApplicationHelper
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
social_colors_rails-0.1.1 lib/social_colors_rails/engine.rb
social_colors_rails-0.1.0 lib/social_colors_rails/engine.rb