Sha256: 32ecdc749c28a51f2c8bddca90454e843f27683f583b57594a702983e2214c96

Contents?: true

Size: 554 Bytes

Versions: 14

Compression:

Stored size: 554 Bytes

Contents

module Rails; module DataMapper; module Models
  class Composite
    attr_accessor :args

    def initialize(*args)
      @args = args
    end

    def ==(other)
      eql?(other)
    end

    def eql?(other)
      !other.nil? && other.args == args
    end
  end

  class Fake
    super_module = Module.new do
      def _super_attributes=(*args)
      end

      def attributes=(*args)
        self.send(:_super_attributes=, *args)
      end
    end
    include super_module

    include ::Rails::DataMapper::MultiparameterAttributes
  end
end; end; end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
ardm-rails-1.3.1 spec/models/fake.rb
ardm-rails-1.3.0 spec/models/fake.rb
ardm-rails-1.2.1 spec/models/fake.rb
tpitale-dm-rails-1.3.0 spec/models/fake.rb
tpitale-dm-rails-1.2.2 spec/models/fake.rb
dm-rails-1.2.1 spec/models/fake.rb
tpitale-dm-rails-1.2.1 spec/models/fake.rb
dm-rails-1.2.0 spec/models/fake.rb
dm-rails-1.2.0.rc2 spec/models/fake.rb
dm-rails-1.2.0.rc1 spec/models/fake.rb
dm-rails-1.1.0 spec/models/fake.rb
dm-rails-1.1.0.rc3 spec/models/fake.rb
dm-rails-1.1.0.rc2 spec/models/fake.rb
dm-rails-1.1.0.rc1 spec/models/fake.rb