Sha256: f2f0d5ae405d6800df6904e6da65ae76b7e4b48661ece2add2e521b54feecb8a

Contents?: true

Size: 315 Bytes

Versions: 3

Compression:

Stored size: 315 Bytes

Contents

module UserSettings
  class Engine < Rails::Engine
    initializer 'Require concerns path' do |app|
      concerns_path = 'app/controllers/concerns'

      unless app.paths.keys.include?(concerns_path)
        app.paths.add(concerns_path)
      end

      require 'concerns/user_settings_concern'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
user_settings-0.0.3 lib/user_settings/engine.rb
user_settings-0.0.2 lib/user_settings/engine.rb
user_settings-0.0.1 lib/user_settings/engine.rb