Sha256: 9ba6bdb7176bf73c29950ab4e5a130bbd6c2916fa04ff8195072df377334f219

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

module ActiveRecordNullObject
  module NullObject
  
    def id 
      nil
    end
  
    def nil?
      true
    end
    
    def empty?
      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.1 lib/null_object.rb