lib/toy/attribute.rb in toystore-0.8.3 vs lib/toy/attribute.rb in toystore-0.9.0
- old
+ new
@@ -1,11 +1,11 @@
module Toy
class Attribute
attr_reader :model, :name, :type, :options
def initialize(model, name, type, options={})
- options.assert_valid_keys(:default, :embedded_list, :virtual, :abbr)
+ options.assert_valid_keys(:default, :virtual, :abbr)
@model, @name, @type, @options = model, name.to_s, type, options
@virtual = options.fetch(:virtual, false)
if abbr?
@@ -54,14 +54,9 @@
options[:abbr]
end
def persisted_name
abbr? ? abbr : name
- end
-
- # Stores reference to related embedded list
- def embedded_list
- options[:embedded_list]
end
def eql?(other)
self.class.eql?(other.class) &&
model == other.model &&
\ No newline at end of file