Module: Switchman::ActiveRecord::AttributeMethods
- Defined in:
- lib/switchman/active_record/attribute_methods.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#id ⇒ Object
ensure that we’re using the sharded attribute method and not the silly one in AR::AttributeMethods::PrimaryKey.
Class Method Details
.included(klass) ⇒ Object
138 139 140 141 |
# File 'lib/switchman/active_record/attribute_methods.rb', line 138 def self.included(klass) klass.extend(ClassMethods) klass.attribute_method_prefix "global_", "local_", "original_" end |
Instance Method Details
#id ⇒ Object
ensure that we’re using the sharded attribute method and not the silly one in AR::AttributeMethods::PrimaryKey
145 146 147 148 |
# File 'lib/switchman/active_record/attribute_methods.rb', line 145 def id self.class.define_attribute_methods super end |