Module: PowerVisit::HelperMethods
- Defined in:
- lib/power_visit/helper_methods.rb
Instance Method Summary collapse
- #visitors_for(object, options = {}) ⇒ Object (also: #visitors)
Instance Method Details
#visitors_for(object, options = {}) ⇒ Object Also known as: visitors
3 4 5 6 |
# File 'lib/power_visit/helper_methods.rb', line 3 def visitors_for(object, = {}) visits = object.visits.order("id desc").limit(10).includes(:user).all render 'power_visit/visitors',:visits => visits end |