Git Product home page Git Product logo

Comments (13)

echon avatar echon commented on May 14, 2024

I get the same warning in my log with my single table inheritance models:

Creating scope :page. Overwriting existing method Brush.page.
Creating scope :page. Overwriting existing method Pattern.page.
Creating scope :page. Overwriting existing method Photo.page.
Creating scope :page. Overwriting existing method Texture.page.

All of those are sub-classes to Asset. None of which define paginates_per in their models (actually none of my models do).

from kaminari.

superp avatar superp commented on May 14, 2024

have same problem.

from kaminari.

ascruggs avatar ascruggs commented on May 14, 2024

I have the same symptom, but I don't think it is due to an association (I don't have a page model). That being said, I think that it and another gem are stepping on each others toes. I am listing my gems here incase someone wants to try to find the commonality.

GEM
remote: http://rubygems.org/
specs:
aasm (2.2.0)
abstract (1.0.0)
actionmailer (3.0.6)
actionpack (= 3.0.6)
mail (> 2.2.15)
actionpack (3.0.6)
activemodel (= 3.0.6)
activesupport (= 3.0.6)
builder (
> 2.1.2)
erubis (> 2.6.6)
i18n (
> 0.5.0)
rack (> 1.2.1)
rack-mount (
> 0.6.14)
rack-test (> 0.5.7)
tzinfo (
> 0.3.23)
activemodel (3.0.6)
activesupport (= 3.0.6)
builder (> 2.1.2)
i18n (
> 0.5.0)
activerecord (3.0.6)
activemodel (= 3.0.6)
activesupport (= 3.0.6)
arel (> 2.0.2)
tzinfo (
> 0.3.23)
activeresource (3.0.6)
activemodel (= 3.0.6)
activesupport (= 3.0.6)
activesupport (3.0.6)
amazon-ec2 (0.9.17)
xml-simple (>= 1.0.12)
annotate (2.4.0)
archive-tar-minitar (0.5.2)
arel (2.0.9)
awesome_print (0.3.2)
aws-s3 (0.6.2)
builder
mime-types
xml-simple
bcrypt-ruby (2.1.4)
builder (2.1.2)
capistrano (2.5.21)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.0.0)
capistrano-ext (1.2.1)
capistrano (>= 1.0.0)
capybara (0.4.1.2)
celerity (>= 0.7.9)
culerity (>= 0.2.4)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (>= 0.0.27)
xpath (> 0.1.3)
celerity (0.8.9)
childprocess (0.1.8)
ffi (
> 1.0.6)
chronic (0.3.0)
columnize (0.3.2)
culerity (0.2.15)
daemons (1.0.10)
delorean (1.0.0)
chronic
devise (1.2.1)
bcrypt-ruby (> 2.1.2)
orm_adapter (
> 0.0.3)
warden (> 1.0.3)
devise_invitable (0.4.1)
devise (
> 1.2.0)
rails (> 3.0.0)
diff-lcs (1.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
factory_girl (2.0.0.beta2)
factory_girl_rails (1.1.beta1)
factory_girl (
> 2.0.0.beta)
rails (>= 3.0.0)
faker (0.9.5)
i18n (> 0.4)
ffi (1.0.7)
rake (>= 0.8.7)
flay (1.4.2)
ruby_parser (
> 2.0)
sexp_processor (> 3.0)
flog (2.5.1)
ruby_parser (
> 2.0)
sexp_processor (> 3.0)
foreigner (0.9.2)
gem_plugin (0.2.3)
highline (1.6.1)
hirb (0.4.3)
hoptoad_notifier (2.4.9)
activesupport
builder
i18n (0.5.0)
jquery-rails (0.2.7)
rails (
> 3.0)
thor (> 0.14.4)
json (1.4.6)
json_pure (1.5.1)
kaminari (0.10.4)
rails (>= 3.0.0)
kgio (2.3.3)
linecache19 (0.5.12)
ruby_core_source (>= 0.1.4)
log4r (1.1.9)
mail (2.2.15)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (
> 1.16)
treetop (> 1.4.8)
mime-types (1.16)
mongrel (1.2.0.pre2)
daemons (
> 1.0.10)
gem_plugin (> 0.2.3)
net-scp (1.0.4)
net-ssh (>= 1.99.1)
net-sftp (2.0.5)
net-ssh (>= 2.0.9)
net-ssh (2.1.4)
net-ssh-gateway (1.0.1)
net-ssh (>= 1.99.1)
nokogiri (1.4.4)
oa-core (0.2.1)
rack (
> 1.1)
oa-openid (0.2.1)
oa-core (= 0.2.1)
rack-openid (> 1.2.0)
ruby-openid-apps-discovery
orm_adapter (0.0.4)
pg (0.10.1)
polyglot (0.3.1)
rack (1.2.2)
rack-mount (0.6.14)
rack (>= 1.0.0)
rack-openid (1.2.0)
rack (>= 1.1.0)
ruby-openid (>= 2.1.8)
rack-ssl (1.3.2)
rack
rack-test (0.5.7)
rack (>= 1.0)
rails (3.0.6)
actionmailer (= 3.0.6)
actionpack (= 3.0.6)
activerecord (= 3.0.6)
activeresource (= 3.0.6)
activesupport (= 3.0.6)
bundler (
> 1.0)
railties (= 3.0.6)
railties (3.0.6)
actionpack (= 3.0.6)
activesupport (= 3.0.6)
rake (>= 0.8.7)
thor (> 0.14.4)
rake (0.8.7)
redis (2.2.0)
redis-namespace (0.10.0)
redis (< 3.0.0)
redis-store (1.0.0.beta4)
redis (>= 2.0.0)
redis (>= 2.0.0)
resque (1.15.0)
json (
> 1.4.6)
redis-namespace (>= 0.10.0)
sinatra (>= 0.9.2)
vegas (> 0.1.2)
resque-scheduler (1.9.9)
redis (>= 2.0.1)
resque (>= 1.8.0)
rufus-scheduler
rr (1.0.2)
rspec (2.5.0)
rspec-core (
> 2.5.0)
rspec-expectations (> 2.5.0)
rspec-mocks (
> 2.5.0)
rspec-core (2.5.1)
rspec-expectations (2.5.0)
diff-lcs (> 1.1.2)
rspec-mocks (2.5.0)
rspec-rails (2.5.0)
actionpack (
> 3.0)
activesupport (> 3.0)
railties (
> 3.0)
rspec (> 2.5.0)
ruby-debug-base19 (0.11.25)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby_core_source (>= 0.1.4)
ruby-debug19 (0.11.6)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby-debug-base19 (>= 0.11.19)
ruby-openid (2.1.8)
ruby-openid-apps-discovery (1.2.0)
ruby-openid (>= 2.1.7)
ruby_core_source (0.1.5)
archive-tar-minitar (>= 0.5.2)
ruby_parser (2.0.6)
sexp_processor (
> 3.0)
rubyzip (0.9.4)
rufus-scheduler (2.0.8)
tzinfo (>= 0.3.23)
selenium-webdriver (0.1.4)
childprocess (>= 0.1.7)
ffi (>= 1.0.7)
json_pure
rubyzip
sexp_processor (3.0.5)
sinatra (1.2.3)
rack (> 1.1)
tilt (>= 1.2.2, < 2.0)
spork (0.9.0.rc5)
steak (1.1.0)
rspec (>= 1.3)
thor (0.14.6)
tilt (1.2.2)
treetop (1.4.9)
polyglot (>= 0.3.1)
tzinfo (0.3.26)
unicorn (3.5.0)
kgio (
> 2.3)
rack
vegas (0.1.8)
rack (>= 1.0.0)
warden (1.0.3)
rack (>= 1.0.0)
wirble (0.1.3)
xml-simple (1.0.15)
xpath (0.1.3)
nokogiri (~> 1.3)

PLATFORMS
ruby

DEPENDENCIES
aasm
amazon-ec2
annotate
ar-octopus!
arel
awesome_print
aws-s3
capistrano
capistrano-ext
capybara
chronic
delorean
devise (> 1.2.0)
devise_invitable (
> 0.4.0)
factory_girl_rails (> 1.1.beta1)
faker
flay
flog
foreigner
hirb
hoptoad_notifier
jquery-rails
kaminari
log4r
mongrel (>= 1.2.0.pre2)
oa-openid
pg
rack-ssl
rails (
> 3.0.5)
redis
redis-store (= 1.0.0.beta4)
resque
resque-scheduler
rr
rspec-rails
ruby-debug19
spork (~> 0.9.0.rc)
steak
unicorn
wirble

from kaminari.

fschwahn avatar fschwahn commented on May 14, 2024

I think #108 fixes this issue.

from kaminari.

plentz avatar plentz commented on May 14, 2024

related #58

from kaminari.

rubythings avatar rubythings commented on May 14, 2024

+1 for #108 which fixes this issue for me ...

from kaminari.

moiristo avatar moiristo commented on May 14, 2024

+1 for #108

from kaminari.

ream88 avatar ream88 commented on May 14, 2024

Any progress on this?

Yes my model has a method called page, but it's an instance method. Why does kaminari complain about instance methods?

from kaminari.

elfassy avatar elfassy commented on May 14, 2024

+1

from kaminari.

constantine-nikolaou avatar constantine-nikolaou commented on May 14, 2024

I'm getting the same error when using ActiveAdmin which requires Kaminari while in my app I use will_paginate.
Is there a solution yet for this? I'm running version 0.13.0

from kaminari.

JimDumas avatar JimDumas commented on May 14, 2024

I just merged from a branch where we had just implemented will_paginate to a different branch and started getting tons of "Creating scope :page. Overwriting existing method PaymentTransaction.page." The PaymentTransaction sounds like it might be ActiveMerchant, which was already in the target branch. Any solution?

from kaminari.

yuki24 avatar yuki24 commented on May 14, 2024

The original problem on this issue has been solved on #48. Please move on to #162 to discuss the will_paginate problem.

from kaminari.

elvin-lian avatar elvin-lian commented on May 14, 2024

I have the same symptom now. My env.

ruby 1.9.3p286
Rails 3.2.8

will_paginate 3.0.3
wice_grid 3.2.0

kaminari (0.14.1)
  actionpack (>= 3.0.0)
  activesupport (>= 3.0.0)


wice_grid (3.2.0)
  kaminari (>= 0.13.0)
will_paginate (3.0.3)
xpath (0.1.4)
  nokogiri (~> 1.3)

from kaminari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.