<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for adityasanghi</title><link>http://disqus.com/by/adityasanghi/</link><description></description><atom:link href="http://disqus.com/adityasanghi/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 20 Jan 2013 03:09:00 -0000</lastBuildDate><item><title>Re: Life of save in ActiveRecord - BigBinary Blog</title><link>http://blog.bigbinary.com/2013/01/15/live-of-save-in-activerecord.html#comment-773019940</link><description>&lt;p&gt;Would it perhaps tell the story a bit more linearly if the "reverse order of operation" section is described just before the "include Persistence" section? and then put the include description sections in reverse order as well? Kind of how we would expect if we stepped in the debugger? Just an opinion?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Sun, 20 Jan 2013 03:09:00 -0000</pubDate></item><item><title>Re: Delivering all email from staging to a group email address</title><link>http://robots.thoughtbot.com/post/40822987615#comment-771628990</link><description>&lt;p&gt;Mailers in Rails 4 have callbacks, which means you can setup an after_filter in your mailer to override the 'to' address without having to do the interceptor rigmarole.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Fri, 18 Jan 2013 04:54:12 -0000</pubDate></item><item><title>Re: How to install ruby-debug on Ruby 1.9</title><link>http://lucaguidi.com/post/2404029727#comment-594799808</link><description>&lt;p&gt;Thankfully it has been replaced with "debugger" gem now.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Sun, 22 Jul 2012 13:42:16 -0000</pubDate></item><item><title>Re: Sharing A Devise User Session Across Subdomains With Rails 3</title><link>http://excid3.com/blog/sharing-a-devise-user-session-across-subdomains-with-rails-3/#comment-535328305</link><description>&lt;p&gt;Awesome but just a sidenote, that &lt;a href="http://lvh.me" rel="nofollow noopener" target="_blank" title="lvh.me"&gt;lvh.me&lt;/a&gt; requires a DNS lookup i think, so in case you're offline there might be issues that you might have to resolve using a locally run DNS (yikes!) or adding all your subdomains in your local /etc/hosts file&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Tue, 22 May 2012 04:23:51 -0000</pubDate></item><item><title>Re: GitX (L)</title><link>http://gitx.laullon.com/#comment-495273760</link><description>&lt;p&gt;Any update on upcoming release?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Thu, 12 Apr 2012 05:03:13 -0000</pubDate></item><item><title>Re: http://rubyquicktips.com/post/17306181714</title><link>http://rubyquicktips.com/post/17306181714#comment-436879863</link><description>&lt;p&gt; Yes of course my friend. But the example used above is so Rails-y that I thought they should use a better example because there are easier ways to do that if you were in Rails. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Sun, 12 Feb 2012 12:15:22 -0000</pubDate></item><item><title>Re: http://rubyquicktips.com/post/17306181714</title><link>http://rubyquicktips.com/post/17306181714#comment-433704554</link><description>&lt;p&gt;Why would you not do&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;Post.all.index_by{|x|x.id}&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Maybe find a better example to show the Array to hash syntax then :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Thu, 09 Feb 2012 01:48:32 -0000</pubDate></item><item><title>Re: Delivering email with Amazon SES in a Rails 3 app</title><link>http://robots.thoughtbot.com/post/3105121049#comment-422841454</link><description>&lt;p&gt;aws-ses doesnt handle BCC so if you need that, dont move to aws-ses yet.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Sat, 28 Jan 2012 04:05:00 -0000</pubDate></item><item><title>Re: Steve Jobs, 1955 &amp;#8211; 2011</title><link>http://www.wired.com/business/2011/10/steve-jobs-1955-2011/#comment-328014804</link><description>&lt;p&gt;RIP Steve Jobs? Bloody unlikely! Not until he's upgraded Heaven to be &lt;br&gt;worthy of his high standards. The place is finally going to be worth &lt;br&gt;visiting. #thankyousteve for raising the bar.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Thu, 06 Oct 2011 10:43:27 -0000</pubDate></item><item><title>Re: Edge Rails.info :: Reversible Migrations</title><link>http://edgerails.info/articles/what-s-new-in-edge-rails/2011/05/06/reversible-migrations#comment-199320388</link><description>&lt;p&gt;Sure @Ryan Daigle , I'm not a fan of DSL hedonism but perhaps it has advantages?&lt;/p&gt;&lt;p&gt;We could pass options to change like&lt;/p&gt;&lt;p&gt;change :quietly_irreversible do&lt;/p&gt;&lt;p&gt;  create_table :posts do |t|&lt;/p&gt;&lt;p&gt;    t.string :title&lt;/p&gt;&lt;p&gt;  end&lt;/p&gt;&lt;p&gt;end&lt;/p&gt;&lt;p&gt;Above could prevent exceptions from being thrown when reversing&lt;/p&gt;&lt;p&gt;or&lt;/p&gt;&lt;p&gt;change :no_index do&lt;/p&gt;&lt;p&gt;end&lt;/p&gt;&lt;p&gt;This could perhaps prevent foreign key indexes from being created&lt;/p&gt;&lt;p&gt;What seems excessive now might have a good use case in Rails 4.0 perhaps?&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Sat, 07 May 2011 11:00:39 -0000</pubDate></item><item><title>Re: Edge Rails.info :: Reversible Migrations</title><link>http://edgerails.info/articles/what-s-new-in-edge-rails/2011/05/06/reversible-migrations#comment-199314744</link><description>&lt;p&gt;How about taking it another notch up and doing for a pure DSL like? &lt;a href="https://gist.github.com/960538" rel="nofollow noopener" target="_blank" title="https://gist.github.com/960538"&gt;https://gist.github.com/960538&lt;/a&gt;&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Sat, 07 May 2011 10:41:32 -0000</pubDate></item><item><title>Re: Quick Left
 | Hoptoad + delayed_job</title><link>http://quickleft.com/blog/hoptoad-delayedjob#comment-156008139</link><description>&lt;p&gt;The only thing to be careful about here is that if in any case HoptoadNotifier.notify itself results in an exception, DelayedJob is going to shutdown. It might be safer to begin/rescue the Hoptoad call or in fact any "extra bits" you do above. I got bitten by Exception Notifier failing due to some reason and preventing restart of DelayedJob complete.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Fri, 25 Feb 2011 13:41:28 -0000</pubDate></item><item><title>Re: http://www.teachmetocode.com/screencasts/30</title><link>http://teachmetocode.com/screencasts/creating-a-simple-plugin/0#comment-28657137</link><description>&lt;p&gt;I think the Color Schemer Studio is wrong as well. I think they're at &lt;a href="http://colorschemer.com" rel="nofollow noopener" target="_blank" title="http://colorschemer.com"&gt;http://colorschemer.com&lt;/a&gt; not &lt;a href="http://colorschemerstudio.com" rel="nofollow noopener" target="_blank" title="http://colorschemerstudio.com"&gt;http://colorschemerstudio.com&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Wed, 06 Jan 2010 06:24:29 -0000</pubDate></item><item><title>Re: James on Software | Observational: Better Observers for ActiveRecord</title><link>http://jamesgolick.com/2009/8/5/observational-better-observers-for-activerecord.html#comment-17117297</link><description>&lt;p&gt;Hi James,&lt;/p&gt;&lt;p&gt;Any plans to patch the to_sym bug or any comments about it? Was also wondering how to handle it best in Development mode where the Observers don't get registered automatically?&lt;/p&gt;&lt;p&gt;Cheers,&lt;br&gt;Aditya&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Tue, 22 Sep 2009 10:54:11 -0000</pubDate></item><item><title>Re: James on Software | Observational: Better Observers for ActiveRecord</title><link>http://jamesgolick.com/2009/8/5/observational-better-observers-for-activerecord.html#comment-15881705</link><description>&lt;p&gt;Also discovered that its a bit tricky to get this to work safely in development mode. Correct me if i'm wrong, but due to lazy loading of classes during development, the model in which you've written "observes" nevers gets loaded and the callbacks are not registered. You have to explicitly load the model (on the console i just put the name of the model and pressed enter), to get the callbacks registered. Maybe this is why Scott Windsor's test also wasnt working as expected?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Thu, 03 Sep 2009 10:33:45 -0000</pubDate></item><item><title>Re: James on Software | Observational: Better Observers for ActiveRecord</title><link>http://jamesgolick.com/2009/8/5/observational-better-observers-for-activerecord.html#comment-15872931</link><description>&lt;p&gt;Hi James,&lt;/p&gt;&lt;p&gt;I had a similar problem where the action was not being called back during the actual call back.&lt;/p&gt;&lt;p&gt;I think the problem is that the method symbol is stored in the Observer Class but the lookup is based on string, so the callback method is not found.&lt;/p&gt;&lt;p&gt;In observational/observer.rb&lt;br&gt;From: &lt;br&gt;    def observes_action?(action)&lt;br&gt;      actions.include?(action)&lt;br&gt;    end&lt;/p&gt;&lt;p&gt;To: &lt;br&gt;    def observes_action?(action)&lt;br&gt;      actions.include?(action.to_sym)&lt;br&gt;    end&lt;/p&gt;&lt;p&gt;That fixed the problem for me. Send patch? or there is a better solution?&lt;/p&gt;&lt;p&gt;Also I tried to test this using the Rails console and had a funny problem.&lt;/p&gt;&lt;p&gt;The class i wanted to observe did not have the observers loaded until i actually referenced once the class in which i've written the observes method.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aditya Sanghi</dc:creator><pubDate>Thu, 03 Sep 2009 07:32:55 -0000</pubDate></item></channel></rss>