c280b3a29b
Refactored basic directory structure. Moved to ActiveSupport for Validations and Callbacks. Cleaned up older code, and removed support for text property types.
10 lines
153 B
Ruby
10 lines
153 B
Ruby
class Person < Hash
|
|
include ::CouchRest::Model::CastedModel
|
|
property :pet, Cat
|
|
property :name, [String]
|
|
|
|
def last_name
|
|
name.last
|
|
end
|
|
end
|