lib/swift/attribute.rb in swift-1.2.0 vs lib/swift/attribute.rb in swift-1.2.1

- old
+ new

@@ -21,10 +21,10 @@ # @see Swift::Record # @see Swift::Type def initialize record, name, options = {} @name = name @default = options.fetch(:default, nil) - @field = options.fetch(:field, name) + @field = options.fetch(:field, name).to_sym @key = options.fetch(:key, false) @serial = options.fetch(:serial, false) define_record_methods(record) end