class Shoulda::Matchers::ActiveRecord::HaveDbColumnMatcher::DecoratedColumn

@private

Attributes

model[R]

Public Class Methods

new(model, column) click to toggle source
Calls superclass method
# File lib/shoulda/matchers/active_record/have_db_column_matcher.rb, line 268
def initialize(model, column)
  @model = model
  super(column)
end

Public Instance Methods

primary?() click to toggle source
# File lib/shoulda/matchers/active_record/have_db_column_matcher.rb, line 277
def primary?
  model.primary_key == name
end
type_cast_default() click to toggle source
# File lib/shoulda/matchers/active_record/have_db_column_matcher.rb, line 273
def type_cast_default
  Shoulda::Matchers::RailsShim.type_cast_default_for(model, self)
end