Sha256: 3b5f0980eb8c2fbb175623919b4221ced425fe0000d39cc3cf505166b4c88224

Contents?: true

Size: 529 Bytes

Versions: 11

Compression:

Stored size: 529 Bytes

Contents

require "rails/railtie"

module Cells
  class Railtie < ::Rails::Railtie
    initializer "cells.attach_router" do |app|
      Cell::Base.class_eval do
        include app.routes.url_helpers
      end
    end
    
    initializer "cells.setup_view_paths" do |app|
      Cell::Base.setup_view_paths!
    end
    
    initializer "cells.setup_engines_view_paths" do |app|
      Cells::Engines.append_engines_view_paths_for(app.config.action_controller)
    end
    
    rake_tasks do
      load "cells/cells.rake"
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cells-3.10.0 lib/cells/railtie.rb
cells-3.9.1 lib/cells/railtie.rb
cells-3.9.0 lib/cells/railtie.rb
cells-3.8.8 lib/cells/railtie.rb
cells-3.8.7 lib/cells/railtie.rb
cells-3.8.6 lib/cells/railtie.rb
cells-3.8.5 lib/cells/railtie.rb
cells-3.8.4 lib/cells/railtie.rb
cells-3.8.3 lib/cells/railtie.rb
cells-3.8.2 lib/cells/railtie.rb
cells-3.8.1 lib/cells/railtie.rb