Module: Kaminari::Neo4j::CriteriaMethods
- Includes:
- PageScopeMethods
- Included in:
- Paginated
- Defined in:
- lib/kaminari/neo4j/criteria_methods.rb
Instance Method Summary collapse
Instance Method Details
#entry_name ⇒ Object
8 9 10 |
# File 'lib/kaminari/neo4j/criteria_methods.rb', line 8 def entry_name model.model_name.human.downcase end |
#limit_value ⇒ Object
12 13 14 |
# File 'lib/kaminari/neo4j/criteria_methods.rb', line 12 def limit_value per_page end |
#offset_value ⇒ Object
16 17 18 |
# File 'lib/kaminari/neo4j/criteria_methods.rb', line 16 def offset_value (current_page - 1) * per_page end |
#total_count ⇒ Object
20 21 22 |
# File 'lib/kaminari/neo4j/criteria_methods.rb', line 20 def total_count total end |