Sha256: b022eacf94348b4e9f45f45828d128a379cbace574e2dda7030d2586c25a57c1
Contents?: true
Size: 661 Bytes
Versions: 3
Compression:
Stored size: 661 Bytes
Contents
module NeatPages class Railtie < Rails::Railtie initializer "neat-pages" do |app| ActiveSupport.on_load :action_controller do include NeatPages::Implants::ActionControllerImplant end ActiveSupport.on_load :action_view do require 'neat_pages/helpers' end Mime::Type.register "text/html", :neatpage if not Mime::Type.lookup_by_extension :neatpage end end module Implants end end dir = File.expand_path(File.dirname(__FILE__)) I18n.load_path << File.join(dir, '../../config/locales', 'fr.yml') require 'neat_pages/implants/action_controller_implant' require 'neat_pages/implants/mongoid_implant'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
neat-pages-1.0.2 | lib/neat_pages/railtie.rb |
neat-pages-1.0.1 | lib/neat_pages/railtie.rb |
neat-pages-1.0.0 | lib/neat_pages/railtie.rb |