Sha256: c39fbe26697952b477228dab9351bb0126bbcabeab03ea8f0beedc934d9e2c11

Contents?: true

Size: 400 Bytes

Versions: 37

Compression:

Stored size: 400 Bytes

Contents

# Copyright (c) 2011 Arthur Shagall
# Released under the MIT license.  See LICENSE for details.

module PowerEnum::Migration

  module CommandRecorder
    def create_enum(*args)
      record(:create_enum, args)
    end

    def remove_enum(*args)
      record(:remove_enum, args)
    end

    def invert_create_enum(args)
      enum_name = args[0]
      [:remove_enum, [enum_name]]
    end
  end

end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
power_enum-1.3.1 lib/power_enum/migration/command_recorder.rb
power_enum-1.3.0 lib/power_enum/migration/command_recorder.rb
power_enum-1.2.0 lib/power_enum/migration/command_recorder.rb
power_enum-1.1.2 lib/power_enum/migration/command_recorder.rb
power_enum-1.1.1 lib/power_enum/migration/command_recorder.rb
power_enum-1.1.0 lib/power_enum/migration/command_recorder.rb
power_enum-1.0.2 lib/power_enum/migration/command_recorder.rb
power_enum-1.0.1 lib/power_enum/migration/command_recorder.rb
power_enum-1.0.0 lib/power_enum/migration/command_recorder.rb
power_enum-0.11.1 lib/power_enum/migration/command_recorder.rb
power_enum-0.11.0 lib/power_enum/migration/command_recorder.rb
power_enum-0.10.0 lib/power_enum/migration/command_recorder.rb
power_enum-0.9.4 lib/power_enum/migration/command_recorder.rb
power_enum-0.9.3 lib/power_enum/migration/command_recorder.rb
power_enum-0.9.2 lib/power_enum/migration/command_recorder.rb
power_enum-0.9.1 lib/power_enum/migration/command_recorder.rb
power_enum-0.8.6 lib/power_enum/migration/command_recorder.rb
power_enum-0.8.5 lib/power_enum/migration/command_recorder.rb
power_enum-0.8.4 lib/power_enum/migration/command_recorder.rb
power_enum-0.8.3 lib/power_enum/migration/command_recorder.rb