Module: Vogue::ResourceControllerExtensions

Defined in:
lib/vogue/resource_controller_extensions.rb

Defined Under Namespace

Modules: Pagination, Searchlogic

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
# File 'lib/vogue/resource_controller_extensions.rb', line 4

def self.included(base)
  include ResourceController::Helpers::Pagination if base.vogue_data[:per_page] || base.vogue_data[:pagination]
  include ResourceController::Helpers::Searchlogic if base.vogue_data[:searchlogic] == true
end