1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00
Commit graph

25 commits

Author SHA1 Message Date
Yuki Nishijima
1590d7d088 Use Mongoid::Config#connect_to to congigure connection on Mongoid 5.0 2016-01-02 12:46:47 +00:00
Yuki Nishijima
eff6d7fc29 Fixed a 'stack level too deep' bug in mongoid
Fixes #642
2015-01-24 13:05:26 -08:00
Yuki Nishijima
30773767c2 Do not attempt to set yamler if on Ruby 2.2.0
It's been removed from 2.2.0: https://bugs.ruby-lang.org/issues/8344
2014-12-31 06:04:52 -08:00
Yuki Nishijima
5db0781a6a Merge pull request #634 from kouyaf77/bugfix
Fixed a bug where paginates_per does not work with subclasses on mongoid
2014-12-31 06:04:50 -08:00
Yuki Nishijima
29f0b32028 Change lambda syntax for Ruby 1.8.7 2014-11-23 09:56:46 -08:00
Yuki Nishijima
80fbea2af0 ✂️ `scope': The scope body needs to be callable.
41664479 (L84)
2014-11-23 09:37:26 -08:00
Yuki Nishijima
fd41f04269 Fix mongo mapper test suite
41827391 (L98)
2014-11-22 19:30:10 -08:00
Yuki Nishijima
97d21d4d9b Fix the test suite for mongoid 40
It didn't run due to:

  moped-2.0.2/lib/moped/cluster.rb:254:in `with_primary':
    Could not connect to a primary node for replica set #<Moped::Cluster @seeds=[<Moped::Node resolved_address="127.0.1.1:27017">]>
    (Moped::Errors::ConnectionFailure)
2014-11-22 19:30:10 -08:00
Yuki Nishijima
8116aef4b1 Mongoid 4.0.0 and later should include Mongoid::Attributes::Dynamic 2014-06-23 13:36:22 -07:00
Yuki Nishijima
5cf398a207 Fix a bug where :theme option for #paginate method doesn't work properly
fixes #566

Conflicts:

	lib/kaminari/helpers/tags.rb
2014-06-10 09:21:59 -07:00
Akira Matsuda
434bbd5452 "DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:test) instead." 2014-06-08 22:43:41 +09:00
Nick Sutterer
de6c41fc01 fix a bug where :view_paths wouldn't be inherited to nested helpers. added a stronger test. 2014-06-01 14:12:22 -07:00
Yuki Nishijima
6c10587bac Move template to spec/fake_app/views
I believe this template has been added for testing reasons, so I just
moved it to spec/fake_app/views.
2014-06-01 14:11:36 -07:00
Yuki Nishijima
1af4bf2b1c Require mongoid/version before use
For some reason it is now required, but not sure why.
2014-06-01 14:09:27 -07:00
Arthur Neves
03a4518635 Add tests for mongoid 4 beta 1 2014-02-02 14:23:46 -05:00
Yuki Nishijima
e6f266acb5 Add test that checks if AR's abstract_class option plays together with kaminari 2013-11-11 10:32:46 +09:00
Akira Matsuda
a157fe00be Revert "Testing that paginate helper properly works under mouted Engine"
This reverts commit e8cab2d34a.

reason: this commit was accidentally added. I wanted to test that the helpers are working inside mouted engine on the fake app, but it turned out that this test is not really testing that...
2013-11-10 05:17:32 +09:00
Akira Matsuda
e8cab2d34a Testing that paginate helper properly works under mouted Engine 2013-11-10 02:51:59 +09:00
Akira Matsuda
c27625ee75 [rails4] "config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:" 2013-06-26 15:08:18 +09:00
Akira Matsuda
1f8389ae8f log to fake_app/log directory 2012-05-24 15:20:26 +09:00
Akira Matsuda
2cf5ad5e6d Ruby 1.8 compat 2012-05-23 13:11:19 +09:00
Akira Matsuda
521f79a297 fake_app => rails_app 2012-05-23 12:54:54 +09:00
Akira Matsuda
88a9680053 configure Sinatra + RSpec + Capybara + Kaminari 2012-05-23 12:54:54 +09:00
Akira Matsuda
52758797d2 AR::Migration.shut_up! 2012-05-23 12:54:54 +09:00
Akira Matsuda
d0cb1837a1 refactor AR, DM, mongoid, and mongo_mapper specs
extract model definitions for each ORM under spec/fake_app, and load them only if target ORM is loaded
by this mechanism, all ORMs share a model name "User", and the other specs such as helper specs and request specs will run polymorphically
2012-05-23 12:44:13 +09:00