Re: [Rails-core] AOP in Rails

243 views
Skip to first unread message

Chad Woolley

unread,
Apr 6, 2013, 2:21:54 PM4/6/13
to Ruby on Rails: Core
Can you give an example of how you would implement this?


On Fri, Apr 5, 2013 at 11:19 PM, Bakhtiyor Homidov <bakht...@gmail.com> wrote:
Why doesn't Rails use aspect-oriented programming? e.g. for loggers

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-co...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Brian Morearty

unread,
Apr 8, 2013, 1:08:18 AM4/8/13
to rubyonra...@googlegroups.com
Rails uses tons of AOP. It just doesn't explicitly call out the fact that it is AOP. The filters in controllers and models are a good example. And in fact the loggers do use AOP. All the SQL logging, for example, is done by a component that plugs in to the notifications that are sent by ActiveRecord when it performs a query.

Matthew Ford

unread,
Aug 24, 2013, 6:52:48 PM8/24/13
to rubyonra...@googlegroups.com
Primarily because ruby is more dynamic that java, where aspects are more commonly used. In Ruby you can get by with reopening classes, and using modules.
Reply all
Reply to author
Forward
0 new messages