Sha256: a9a62faf108c1e5e372edec00a5418150abf784f63cc253ca3dc58253c354e68
Contents?: true
Size: 665 Bytes
Versions: 47
Compression:
Stored size: 665 Bytes
Contents
module SocialStream module Migrations # 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 Finder 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 end
Version data entries
47 entries across 47 versions & 2 rubygems