Sha256: 760a1a5fd496a824e9c0f780d69ef85b8feb9ec8463f9106f425813efe5abaf6

Contents?: true

Size: 295 Bytes

Versions: 7

Compression:

Stored size: 295 Bytes

Contents

module Bootswitch
  class Railtie < Rails::Railtie
    initializer 'bootswitch.add_view_paths', :after => :add_view_paths do |app|
      ActiveSupport.on_load(:action_controller) do
        prepend_view_path Gem.loaded_specs['bootswitch'].full_gem_path + '/app/views'
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bootswitch-0.4.0 lib/bootswitch/railtie.rb
bootswitch-0.3.0 lib/bootswitch/railtie.rb
bootswitch-0.2.2 lib/bootswitch/railtie.rb
bootswitch-0.2.1 lib/bootswitch/railtie.rb
bootswitch-0.2.0 lib/bootswitch/railtie.rb
bootswitch-0.1.3 lib/bootswitch/railtie.rb
bootswitch-0.1.2 lib/bootswitch/railtie.rb