Sha256: 342f081735312c02932d9740bd97b2da3799d920c9f0ea278e4c3464accd1174

Contents?: true

Size: 458 Bytes

Versions: 12

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module EacRailsUtils
  module EngineHelper
    common_concern do
      append_self_migrations
    end

    module ClassMethods
      def append_self_migrations
        initializer :append_migrations do |app|
          config.paths['db/migrate'].expanded.each do |expanded_path|
            app.config.paths['db/migrate'] << expanded_path
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
eac_rails_utils-0.16.0 lib/eac_rails_utils/engine_helper.rb
eac_rails_utils-0.15.2 lib/eac_rails_utils/engine_helper.rb
eac_rails_utils-0.15.1 lib/eac_rails_utils/engine_helper.rb
eac_rails_utils-0.15.0 lib/eac_rails_utils/engine_helper.rb
eac_rails_utils-0.14.1 lib/eac_rails_utils/engine_helper.rb
eac_rails_utils-0.14.0 lib/eac_rails_utils/engine_helper.rb
eac_rails_utils-0.13.5 lib/eac_rails_utils/engine_helper.rb
eac_rails_utils-0.13.4 lib/eac_rails_utils/engine_helper.rb
eac_rails_utils-0.13.3 lib/eac_rails_utils/engine_helper.rb
eac_rails_utils-0.13.2 lib/eac_rails_utils/engine_helper.rb
eac_rails_utils-0.13.1 lib/eac_rails_utils/engine_helper.rb
eac_rails_utils-0.13.0 lib/eac_rails_utils/engine_helper.rb