Code Monkey home page Code Monkey logo

Comments (8)

gucki avatar gucki commented on May 25, 2024

Filled an issue here too: mislav/will_paginate#190

from ruby-units.

mislav avatar mislav commented on May 25, 2024

Seems like ActionPack chokes in scope_key_by_partial because of the way ruby-units implements the String#to method. ActiveSupport probably expects #to to behave in a different way.

I think ruby-units is too liberal in extending the String class.

from ruby-units.

olbrich avatar olbrich commented on May 25, 2024

Yeah, I've been regretting that for a while now.

from ruby-units.

gucki avatar gucki commented on May 25, 2024

@olbrich Any plans on improving this? Otherwise it's barely usable with rails... :-(

from ruby-units.

mislav avatar mislav commented on May 25, 2024

I don't know the cause of exact error but I gave a pretty good hint above. If you're using this lib, you might want to debug to find out the exact cause of the error and monkeypatch it. It shouldn't be too hard

from ruby-units.

olbrich avatar olbrich commented on May 25, 2024

Yeah, I'm looking into fixing it this weekend.

from ruby-units.

olbrich avatar olbrich commented on May 25, 2024

This should be mitigated with the new 1.3.2.a pre-release gem. I've removed a lot of the helpers and pushed them into a file that is not automatically required. I'll probably remove them completely in a future release. Let me know if it works better as I have not had a chance to use the new pre-release gem with an actual rails application yet. I'll release it for real after I'm sure that it will work.

from ruby-units.

olbrich avatar olbrich commented on May 25, 2024

fixed #22 in 1.3.2

from ruby-units.

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.