28 May '17, 8am

Method: Kaminari::ActiveRecordRelationMethods#total_count — Documentation for amatsuda/kaminari (master) https://t.co/mdO4P7Aj7o

Libraries » amatsuda/kaminari (master) » Index » Kaminari » ActiveRecordRelationMethods » #total_count Method: Kaminari::ActiveRecordRelationMethods#total_count Defined in: lib/kaminari/models/active_record_relation_methods.rb #total_count (column_name = :all, options = {}) ⇒ Object :nodoc: 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 # File 'lib/kaminari/models/active_record_relation_methods.rb', line 12 def total_count ( column_name = :all , options = { } ) #:nodoc: # #count overrides the #select which could include generated columns referenced in #order, so skip #order here, where it's irrelevant to the result anyway @total_count ||= begin c = except ( :offset , :limit , :order ) # Remove includes only if they are irrelevant c = c . except ( :includes ) unless references_eager_loaded_tables? # Rails 4.1 removes the `options` argument from AR::Relation#...

Full article: http://www.rubydoc.info/github/amatsuda/kaminari/Kaminari...

Tweets

I've been fleshing out the RSchema documentatio...

rubydoc.info 27 May '17, 5am

Note: Do not include your custom DSL methods into this module. Include them into the DefaultDSL class instead. A mixin con...

6 Picnic Ideas to Master the Art of Eating Outdoors

6 Picnic Ideas to Master the Art of Eating Outd...

ecosalon.com 28 May '17, 8am

Now that warmer weather is upon us (and if it’s not, it’s just around the corner), you should only have one thing on your ...

Class: Array — Documentation for core (2.3.1)

rubydoc.info 02 Jun '17, 5pm

static VALUE pack_pack(VALUE ary, VALUE fmt) { static const char nul10[] = "\0\0\0\0\0\0\0\0\0\0"; static const char spc10...