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
def create
    # SWFUpload upload
    if params[:Filedata]
...

Ruby Huge create action

by Kevin Ansfield, April 29, 2010 07:53, 2 refactorings, tagged with rails, paperclip, create, swf_upload

Inherited this from an olde...

8d2495ececc02f79f0bcc39a33d1656c Talk