Module: BlacklightUserGeneratedContent::Findable
- Defined in:
- lib/blacklight_user_generated_content/findable.rb
Instance Method Summary collapse
-
#find(*args) ⇒ Object
Override RSolr finder method to mock ActiveRecord#find Provide a mock method for #find XXX this seems slightly dangerous as is, but seems to work well enough.
Instance Method Details
#find(*args) ⇒ Object
Override RSolr finder method to mock ActiveRecord#find Provide a mock method for #find XXX this seems slightly dangerous as is, but seems to work well enough
6 7 8 9 10 11 |
# File 'lib/blacklight_user_generated_content/findable.rb', line 6 def find *args if args.first.is_a? String return super(:qt => :document, :id => args.first).first end super(*args) end |