module MR::FakeRecord::Attributes::ClassMethods

Public Instance Methods

attribute(name, type, options = nil) click to toggle source
# File lib/mr/fake_record/attributes.rb, line 20
def attribute(name, type, options = nil)
  self.attributes.add(self, name, type, options)
end
attributes() click to toggle source
# File lib/mr/fake_record/attributes.rb, line 16
def attributes
  @attributes ||= MR::FakeRecord::AttributeSet.new
end
columns() click to toggle source

ActiveRecord methods

# File lib/mr/fake_record/attributes.rb, line 26
def columns
  self.attributes.to_a
end