Sha256: 6de2613c2a2dfb32bad7119d2bc9abedae0edaef97bc6cf682fc94e713520421
Contents?: true
Size: 576 Bytes
Versions: 56
Compression:
Stored size: 576 Bytes
Contents
require 'rails_generator' module TrustyCms module GeneratorBaseExtension def self.included(base) base.class_eval { alias_method :existing_migrations_without_extensions, :existing_migrations alias_method :existing_migrations, :existing_migrations_with_extensions } end def existing_migrations_with_extensions(file_name) Dir.glob("#{destination_path(@migration_directory)}/[0-9]*_*.rb").grep(/[0-9]+_#{file_name}.rb$/) end end end Rails::Generator::Commands::Base.class_eval { include TrustyCms::GeneratorBaseExtension }
Version data entries
56 entries across 56 versions & 1 rubygems