Sha256: fdd9fe11c0c992d754d123ed0d59d91a431ac4f3962c7cc73b6d4948fe03673f
Contents?: true
Size: 615 Bytes
Versions: 13
Compression:
Stored size: 615 Bytes
Contents
module SocialStream # Searches for migrations in a gem and requires them. # Example: # # MigrationFinder.new 'acts-as-taggable-on', # ["generators", "acts_as_taggable_on", "migration", "templates", "active_record", "migration"] # ActsAsTaggableOnMigration.up class MigrationFinder def initialize gem, path finder = Gem::GemPathSearcher.new taggable_spec = finder.find(gem) taggable_migration = finder.matching_files(taggable_spec, File.join(*path)).first require taggable_migration end end end
Version data entries
13 entries across 13 versions & 1 rubygems