Module: Blacklight::User
- Defined in:
- lib/blacklight/user.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary (collapse)
-
+ (Object) included(base)
This gives us an is_blacklight_user method that can be included in the containing applications models.
Class Method Details
+ (Object) included(base)
This gives us an is_blacklight_user method that can be included in the containing applications models. SEE ALSO: The /lib/blacklight/engine.rb class for how when this is injected into the hosting application through ActiveRecord::Base extend
8 9 10 11 12 |
# File 'lib/blacklight/user.rb', line 8 def self.included(base) base.send :has_many, :bookmarks, :dependent => :destroy, :as => :user base.send :has_many, :searches, :dependent => :destroy, :as => :user base.send :include, InstanceMethods end |