On Nov 11, 10:12 pm, Carson Cole carson.c...@gmail.com wrote:
How could one modularlize a group of filters to be used in many models? I
like to avoid this (again, I am doing this in many models):
class Something
before_filter :a
before_filter :b
after_filter :c
end
and instead,
Fred,
Thank you so much for the reply, and it was a great one. Did not know about
that and you broadened my knowledge of extend vs. include and included. I
had only been using modules to extend instance methods, but this opened up
a new world. From your answer, I was able to remove 5 lines of
Meant to save callback instead of filter.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/2VtMqdlQkFUJ.
To post to this group, send email to
3 matches
Mail list logo