Josh Susser
reader · Not a member
Josh Susser's latest activity
Friday, March 25 2011
Thursday, March 24 2011
-
Josh Susser commented at 4:45 PMBy the way, the simplistic example given in the original ticket above isn't the motivating use case. That would be using an association or scope to find a recor...
-
-
Josh Susser created the ticket at 5:03 AMBefore scopes, controller methods did this:
@user = User.find(params[:id])Now with scopes you can do
@user = User.where(:id => params[:id]).firstHowever t...
Friday, March 26 2010
-
Josh Susser commented at 3:41 PMJeremy, what's the downside? Names are still optional when creating railties/engines - if you don't specify one the railtie gets assigned the default name based...
-
Josh Susser commented at 4:31 AMI need this for my patch to run migrations within engines, to allow identifying an engine by name. Seemed to make sense to make it a separate patch.
Thursday, March 25 2010
-
Josh Susser commented at 6:35 AM -
-
Josh Susser created the ticket at 6:18 AMVery simple 1-liner method to find railties and engines by name.
module Rotary class Wankle < Rails::Engine engine_name :wankle end end Rails::Engine.n...
Tuesday, March 09 2010
-
Josh Susser commented at 7:07 AMAnd now it seems like this isn't happening after all. I heard multiple reports of this and thought I reproduced it, but now I can't. Unless someone else has a r...