Module: Kaminari
- Defined in:
- lib/kaminari/engine.rb,
lib/kaminari/config.rb,
lib/kaminari/railtie.rb,
lib/kaminari/version.rb,
lib/kaminari/helpers/tags.rb,
lib/kaminari/models/fixer.rb,
lib/kaminari/helpers/paginator.rb,
lib/kaminari/models/array_extension.rb,
lib/kaminari/models/mongoid_extension.rb,
lib/kaminari/models/page_scope_methods.rb,
lib/generators/kaminari/views_generator.rb,
lib/generators/kaminari/config_generator.rb,
lib/kaminari/models/configuration_methods.rb,
lib/kaminari/helpers/action_view_extension.rb,
lib/kaminari/models/mongo_mapper_extension.rb,
lib/kaminari/models/active_record_extension.rb,
lib/kaminari/models/plucky_criteria_methods.rb,
lib/kaminari/models/mongoid_criteria_methods.rb,
lib/kaminari/models/active_record_relation_methods.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ActionViewExtension, ActiveRecordExtension, ActiveRecordRelationMethods, ConfigurationMethods, Generators, Helpers, MongoMapperExtension, MongoidCriteriaMethods, MongoidExtension, PageScopeMethods, PluckyCriteriaMethods Classes: Configuration, Engine, Fixer, PaginatableArray, Railtie
Constant Summary collapse
- VERSION =
'0.12.4.001'
Class Method Summary collapse
-
.config ⇒ Object
Global settings for Kaminari.
-
.configure {|@config ||= Kaminari::Configuration.new| ... } ⇒ Object
Configures global settings for Kaminari Kaminari.configure do |config| config.default_per_page = 10 end.
-
.paginate_array(array) ⇒ Object
Wrap an Array object to make it paginatable.
Class Method Details
.config ⇒ Object
Global settings for Kaminari
13 14 15 |
# File 'lib/kaminari/config.rb', line 13 def self.config @config end |
.configure {|@config ||= Kaminari::Configuration.new| ... } ⇒ Object
Configures global settings for Kaminari
Kaminari.configure do |config|
config.default_per_page = 10
end
8 9 10 |
# File 'lib/kaminari/config.rb', line 8 def self.configure(&block) yield @config ||= Kaminari::Configuration.new end |
.paginate_array(array) ⇒ Object
Wrap an Array object to make it paginatable
39 40 41 |
# File 'lib/kaminari/models/array_extension.rb', line 39 def self.paginate_array(array) PaginatableArray.new array end |