Giter VIP home page Giter VIP logo

Comments (5)

kputnam avatar kputnam commented on July 26, 2024

The scope of this change might be quite large, since delegate is used in about 80 call sites. My approach would probably be to change the Module#delegate method to a singleton method, like

module Stupidedi
  def self.delegate(klass, *params)
    ...
  end
end

and then change each call site to look like Stupidedi.delegate(self, ...). This approach isn't much more than moving the method to a namespace, where it won't conflict with ActiveSupport.

I'd gladly accept a patch from you to do this, otherwise it may take a while for me to get around to doing it myself, simply because it's a low priority for me. Feel free to ask for help if you're interested in working on it! Solving this would probably solve the most important parts of #23.

from stupidedi.

ksaynice avatar ksaynice commented on July 26, 2024

cool! thx for the quick response, i would like to try this tomorrow

-=K=-

On Tuesday, February 4, 2014 at 8:36 PM, Kvle Putnam wrote:

The scope of this change might be quite large, since delegate is used in about 80 call sites. My approach would probably be to change the Module#delegate method to a singleton method, like
module Stupidedi def self.delegate(klass, *params) ... end end

and then change each call site to look like Stupidedi.delegate(self, ...). This approach isn't much more than moving the method to a namespace, where it won't conflict with ActiveSupport.
I'd gladly accept a patch from you to do this, otherwise it may take a while for me to get around to doing it, simply because it's a low priority for me. Feel free to ask for help if you're interested in working on it! Solving this would probably solve the most important parts of #23 (#23).


Reply to this email directly or view it on GitHub (#35 (comment)).

from stupidedi.

ksaynice avatar ksaynice commented on July 26, 2024

I guess fixed this delegate thing by follow your solution, but more issue come out from active_support which prevent me to work on my current rails app. In the meantime, i have to finish something in hurry and i would like to figure this out later.
Thanks a lot for the helps.

from stupidedi.

kputnam avatar kputnam commented on July 26, 2024

Hmm, sorry to hear more Rails issues are lurking. If you'll be occupied for a while, I'll happily accept a pull-request that fixed only the issue with delegate. No problem with filing the other issues separately, when you have time.

from stupidedi.

kputnam avatar kputnam commented on July 26, 2024

Closing this issue as @irobayna fixed problems with delegate in #41. Please open a new ticket if other problems remain.

from stupidedi.

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.