Sha256: ce22992e3a27503b7f1237dd941832fd5480b235578476593ba335602ab76722
Contents?: true
Size: 474 Bytes
Versions: 71
Compression:
Stored size: 474 Bytes
Contents
require 'rails_generator' module TrustyCms module GeneratorBaseExtension def self.included(base) base.class_eval %{ alias_method_chain :existing_migrations, :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
71 entries across 71 versions & 1 rubygems