What’s the best way to extend an acts_as plugin?
Specifically I’m trying to implement the acts_as_taggable_on plugin, but
I
want to hide a bunch of methods it exposes and extend a few others.
What’s the best way to extend an acts_as plugin?
Specifically I’m trying to implement the acts_as_taggable_on plugin, but
I
want to hide a bunch of methods it exposes and extend a few others.
The extending part was easy. I was overthinking it I guess.
class User < ActiveRecord::Base
acts_as_taggable_on :interests
def tag(*args)
# do whatever
super
end
end
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs