Module: PaginateAlphabetically

Defined in:
lib/view_helpers.rb,
lib/paginate_alphabetically.rb

Defined Under Namespace

Modules: ClassMethods, ViewHelpers

Instance Method Summary collapse

Instance Method Details

#paginate_alphabetically(params) ⇒ Object



2
3
4
5
# File 'lib/paginate_alphabetically.rb', line 2

def paginate_alphabetically(params)
  @attribute = params[:by]
  self.extend ClassMethods
end