Sha256: ce95ecfef420ff59e4fbff7184eee9523c6121dded39e92816d7f25a8db1fee6

Contents?: true

Size: 308 Bytes

Versions: 6

Compression:

Stored size: 308 Bytes

Contents

module Attachs
  module ActiveRecord
    module Migration
      module CommandRecorder
        def add_attachment(*args)
          record :add_attachment, args
        end

        private

        def invert_add_attachment(*args)
          [:remove_attachment, args]
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
attachs-0.4.5 lib/attachs/active_record/migration.rb
attachs-0.4.4 lib/attachs/active_record/migration.rb
attachs-0.4.3 lib/attachs/active_record/migration.rb
attachs-0.4.2 lib/attachs/active_record/migration.rb
attachs-0.4.1 lib/attachs/active_record/migration.rb
attachs-0.4.0 lib/attachs/active_record/migration.rb