Module: Doorkeeper::Models::Mongoid::Revocable

Included in:
AccessGrant, AccessToken
Defined in:
lib/doorkeeper/models/mongoid/revocable.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/doorkeeper/models/mongoid/revocable.rb', line 5

def self.included(base)
  base.class_eval do
    def update_column(attr, val)
      update_attribute attr, val
    end
  end
end