Module: Eaco::Adapters::ActiveRecord::Compatibility::V32

Defined in:
lib/eaco/adapters/active_record/compatibility/v32.rb

Overview

Rails 3.2 JSONB support module.

Uses github.com/romanbsd/activerecord-postgres-json to do the dirty compatibility stuff. This module only uses .serialize to set the JSON coder.

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Sets the JSON coder on the acl column


19
20
21
# File 'lib/eaco/adapters/active_record/compatibility/v32.rb', line 19

def self.included(base)
  base.serialize :acl, ::ActiveRecord::Coders::JSON
end