aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-02-15 13:49:21 -0700
committerSean Griffin <sean@thoughtbot.com>2015-02-15 14:22:08 -0700
commit8c837e5fcc2a3ac639b3b93b0024bd2c20d3b6ed (patch)
tree48c22796cb5e039bc4f21cc75458f4467ecf76eb /activerecord/lib/active_record/persistence.rb
parent1747c4e2cea811cbf04fccc9f57256c80112d9ce (diff)
downloadrails-8c837e5fcc2a3ac639b3b93b0024bd2c20d3b6ed.tar.gz
rails-8c837e5fcc2a3ac639b3b93b0024bd2c20d3b6ed.tar.bz2
rails-8c837e5fcc2a3ac639b3b93b0024bd2c20d3b6ed.zip
Add a global type registry, used to lookup and register types
As per previous discussions, we want to give users the ability to reference their own types with symbols, instead of having to pass the object manually. This adds the class that will be used to do so. ActiveRecord::Type.register(:money, MyMoneyType)
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
0 files changed, 0 insertions, 0 deletions