Sha256: 5ae1993bce7c4c354ac5619b8d3ca5ab8cf877b04af2dce396a88f9f1fe8b7d5
Contents?: true
Size: 772 Bytes
Versions: 6
Compression:
Stored size: 772 Bytes
Contents
# frozen_string_literal: true module Tally class Engine < ::Rails::Engine isolate_namespace Tally engine_name "tally" # Run migrations in the main app without copying # From: https://content.pivotal.io/blog/leave-your-migrations-in-your-rails-engines initializer "tally.append_migrations" do |app| unless app.root.to_s.match root.to_s config.paths["db/migrate"].expanded.each do |expanded_path| app.config.paths["db/migrate"] << expanded_path end end end # Allow approved helpers to be included in the main app initializer "tally.expose_helpers" do |app| ActiveSupport.on_load :action_controller do ActionController::Base.helper Tally::IncrementHelper end end end end
Version data entries
6 entries across 6 versions & 1 rubygems