Sha256: f8b4523324b9fc6303edafa7627f96e17e3a19ca078157bf178ddc908871c75c

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

module ActiveRecordNullObject
  module NullObject
  
    def id 
      nil
    end
  
    def nil?
      true
    end
  
    def new_record?
      false
    end
  
    def save
      true
    end
  
    def save!
      true
    end

    def update_attributes(attributes)
      true
    end
  
    def update_attributes!(attributes)
      true
    end
  
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
westarete-activerecord_null_object-0.0.0 lib/null_object.rb