This project is archived and is in readonly mode.
Add methods for including start events with notified actions
-
Justin George
Patch attached
-
Justin George
- Tag changed from 3.0, notifications to 3.0, notifications, patch
-
Rizwan Reza
- Milestone cleared.
- State changed from new to verified
+1 Verified. This patch applies cleanly and all tests pass.
-
Jeremy Kemper
Justin, we should always fire start events. Could you merge this with
instrumentrather than introduce a new API? -
Justin George
There's a couple situations where you don't want it, !render_template.action_view being the main one where 1000s of calls may be mode.
I will rename the old instrument method to be instrument_without_start, or something like that, yes? Or make it take an optional parameter? I'm not sure which is the proper way.
def instrument(event, payload={}) ... end def instrument_without_start(event, payload={}) ... endversus
def instrument(event, payload={}, start=true) @notifier.publish(...) if start ... endThanks for the feedback, I was less sure about this change.
-
Repository
- State changed from verified to resolved
(from [f3abc8ac36055afed9fcc902c33ee146e066d17a]) Use multibyte proxy class on 1.9, refactor Unicode.
Makes String#mb_chars on Ruby 1.9 return an instance of ActiveSupport::Multibyte::Chars to work around 1.9's lack of Unicode case folding.
Refactors class methods from ActiveSupport::Multibyte::Chars into new Unicode module, adding other related functionality for consistency.
[#4594 state:resolved]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/f3abc8ac36055afed9fcc902c33ee1... -
Justin George
Okay, here we are, after a brief hiatus, a proper patch for this.
I think that the case I was worrying about before (!render_template) is not that big a deal - if it's a problem we can fix it later.
-
Rohit Arondekar
Justin, this patch doesn't apply any more to Rails master. Can you fix it?
-
Roger Leite
Hi, I made a fix to this patch.
Can you please check if it's ok ? -
Dan Pickett
Robert's patch currently applies cleanly to master (despite a trailing whitespace warning), with all tests passing
-
Santiago Pastorino
- Milestone set to 3.1
