Sha256: 363a6f11e41b9c048a53e7c50cf435b087aaaffb76a0ec840964fd6970a0f77e
Contents?: true
Size: 408 Bytes
Versions: 4
Compression:
Stored size: 408 Bytes
Contents
class User < ActiveRecord::Base attr_reader :updated, :destroyed attr_accessor :name, :id def initialize @updated = false @destroyed = false super end def self.all [new, new] end def self.find(id) new end def self.create(params) new end def update_attributes(params) @updated = true true end def destroy @destroyed = true true end end
Version data entries
4 entries across 4 versions & 1 rubygems