Class: GiftCardSearch
Instance Method Summary collapse
Methods inherited from Search
attr_accessors, #attr_accessors, attr_accessors=, #search_order, searchable_attributes, #searchable_attributes, searchable_attributes=, #valid_orders, valid_orders, valid_orders=
Instance Method Details
#gift_cards ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'app/models/gift_card_search.rb', line 94 def gift_cards @gift_cards ||= GiftCard.send( (paginate?)?'paginate':'all',{ :order => search_order, :joins => joins, :conditions => conditions }.merge( (paginate?)?{ :per_page => per_page||25, :page => page||1 }:{} ) ) end |