Displaying 1 result from an estimated 1 matches for "foo_without_featur".
Did you mean:
foo_without_feature
2006 Jul 02
0
Rails Core Weekly June 19 - July 2 2006
...worth studying (uses ActiveRecord::Base#send):
http://dev.rubyonrails.org/changeset/4473
The very useful Module#alias_method_chain is further enhanced by
Jeremy Kemper to allow preservation of method punctuation. Jeremy
explains:
alias_method_chain :foo?, :feature
is equivalent to
alias_method :foo_without_feature?, :foo?
alias_method :foo?, :foo_without_feature?
If you''re unfamiliar with this method read
http://weblog.rubyonrails.org/2006/4/26/new-in-rails-module-alias_method_chain.
You might never use it since it''s internal to Rails but study it
nevertheless to sharpen your Ruby-mind....