Class: Shield::Model::FetchMissing
- Inherits:
-
Object
- Object
- Shield::Model::FetchMissing
- Defined in:
- lib/shield/model.rb
Instance Method Summary collapse
Instance Method Details
#message ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/shield/model.rb', line 20 def %{ !! You need to implement `fetch`. Below is a quick example implementation (in Ohm): def fetch(email) find(:email => email).first end For more example implementations, check out http://github.com/cyx/shield-contrib }.gsub(/^ {10}/, "") end |