Module: Bushido::Orm::Mongoid::Hook

Defined in:
lib/bushido/orm/mongoid.rb

Instance Method Summary collapse

Instance Method Details

#bushido_modules_hook!Object



7
8
9
10
11
12
# File 'lib/bushido/orm/mongoid.rb', line 7

def bushido_modules_hook!
  extend Schema
  yield
  return unless Devise.apply_schema
  devise_modules.each { |m| send(m) if respond_to?(m, true) }
end