Sha256: d1cd5e3de75313677edee48337d8df36a836a5b9e03fc9367023bd68a70a8669

Contents?: true

Size: 400 Bytes

Versions: 4

Compression:

Stored size: 400 Bytes

Contents

# use "use_couchrest_model" in the DSL or
# include this module in a migration to use CouchRest::Model
if defined?(::CouchRest::Model)
  module ::CouchRest
    module Model
      class Base
        class << self
          alias to_s_original to_s

          def to_s
            to_s_original.sub(/CouchMigrate::BaseExecuter::Namespaced::/, '')
          end
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
couch-migrate-1.1.3 lib/couch_migrate/couchrest_model/extend.rb
couch-migrate-1.1.2 lib/couch_migrate/couchrest_model/extend.rb
couch-migrate-1.1.1 lib/couch_migrate/couchrest_model/extend.rb
couch-migrate-1.1.0 lib/couch_migrate/couchrest_model/extend.rb