aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/lib/active_record/attributes/store.rb
blob: 61109f4acc8be375349f47b95566fe43d7a472ea (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                          
module ActiveRecord
  module Attributes
    class Store < Hash
      include ActiveRecord::Attributes::Typecasting
      include ActiveRecord::Attributes::Aliasing

      # Attributes not mapped to a column are handled using Type::Unknown,
      # which enables boolean typecasting for unmapped keys.
      def types
        @types ||= Hash.new(Type::Unknown.new)
      end

    end
  end
end