mustmodify / valuable

quick ruby modeling -- basically attr_accessor with default values, light-weight casting, and a constructor
http://valuable.mustmodify.com/
MIT License
72 stars 3 forks source link

handle the idea that ActiveModel changes over time #7

Open mustmodify opened 9 years ago

mustmodify commented 9 years ago

Version 4

class Valuable
  ...
  include ActiveModel::Model
end

Version 3

class Valuable
    extend ActiveModel::Callbacks
    extend ActiveModel::Naming
    extend ActiveModel::Translation
    include ActiveModel::Validations
end