Sha256: 1ab710b45f32531a5325c3b602a9bea52edc61bba0857adbddb2e1348fc0f313

Contents?: true

Size: 224 Bytes

Versions: 6

Compression:

Stored size: 224 Bytes

Contents

module CouchPillow

  module MigrateDirective


    # Migrate the value of a key
    #
    def migrate key, &block
      migrate_keys[key] = block
    end


    def migrate_keys
      @migrate_keys ||= {}
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
couchpillow-0.4.12 lib/couchpillow/directives/migrate.rb
couchpillow-0.4.11 lib/couchpillow/directives/migrate.rb
couchpillow-0.4.10 lib/couchpillow/directives/migrate.rb
couchpillow-0.4.9 lib/couchpillow/directives/migrate.rb
couchpillow-0.4.8 lib/couchpillow/directives/migrate.rb
couchpillow-0.4.7 lib/couchpillow/directives/migrate.rb