Sha256: 2103483b8318b14afde9c9502d090f30f186ff444abecae452f1a7832b6919b7
Contents?: true
Size: 682 Bytes
Versions: 3
Compression:
Stored size: 682 Bytes
Contents
require "rails/railtie" module Apotomo class Railtie < ::Rails::Railtie rake_tasks do load "apotomo/apotomo.rake" end # As we are a Railtie only, the routes won't be loaded automatically. Beside that, we want our # route to be the very first (otherwise #resources might supersede it). initializer 'apotomo.prepend_routes', :after => :add_routing_paths do |app| app.routes_reloader.paths.unshift(File.dirname(__FILE__) + "/../../config/routes.rb") end # Include a lazy loader via has_widgets. initializer 'apotomo.add_has_widgets' do |app| ActionController::Base.extend Apotomo::Rails::ControllerMethodsLoader end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
apotomo-1.3.2 | lib/apotomo/railtie.rb |
apotomo-1.3.1 | lib/apotomo/railtie.rb |
apotomo-1.3.0 | lib/apotomo/railtie.rb |