class Shoulda::Matchers::RailsShim::LegacyAttributeType
Attributes
attribute_name[R]
model[R]
Public Class Methods
new(model, attribute_name)
click to toggle source
# File lib/shoulda/matchers/rails_shim.rb, line 197 def initialize(model, attribute_name) @model = model @attribute_name = attribute_name end
Public Instance Methods
coder()
click to toggle source
# File lib/shoulda/matchers/rails_shim.rb, line 202 def coder if model.respond_to?(:serialized_attributes) ActiveSupport::Deprecation.silence do model.serialized_attributes[attribute_name.to_s] end end end