def create
  allow_publish = logged_in? && @trend.allow_more_publishers?(params[:connection_id])
  if allow_publish && !@trend.include_publisher?(params[:connection_id])
...

Ruby what if I don't like too ma...

by edgarjs, October 21, 2010 15:50, 4 refactorings, tagged with rails, conditions, associations, controller, create, build, ifs

I want to avoid the abuse o...

380f2ee82510287050b118947e8526dd Talk