Sha256: f7d303de12d00372f8b7c8570ec46e49096f73b4fe2f415608ff5db8c38af171
Contents?: true
Size: 735 Bytes
Versions: 8
Compression:
Stored size: 735 Bytes
Contents
module Documentation class Engine < Rails::Engine isolate_namespace Documentation initializer 'shoppe.initialize' do |app| config.paths["db/migrate"].expanded.each do |expanded_path| app.config.paths["db/migrate"] << expanded_path end # Load view helpers for the base application ActiveSupport.on_load(:action_view) do ActionView::Base.send :include, Documentation::ViewHelpers end end generators do require 'documentation/generators/setup_generator' end def self.mounted_path if route = Rails.application.routes.routes.select { |r| r.app == self }.first route.path.spec.to_s end end end end
Version data entries
8 entries across 8 versions & 1 rubygems