def id_found_or_limit_reached?
  if @upload_uuid || @request_uuid || (body.size > MAX_BODY)
    @data_buffer = nil
...

Ruby If statement with true retu...

by Dombesz, October 19, 2011 08:50, 7 refactorings, tagged with if else, return

The function should return ...

D41d8cd98f00b204e9800998ecf8427e Talk
def validate_permalink(attr_name)
    if permalink?
      permalink = sanitize_permalink(attr_name)
...

Ruby Simple if staments

by rgoytacaz.myopenid.com, March 16, 2010 01:23, 3 refactorings, tagged with if else

easy one?

9fe77a0217c77ce4cb00096d863c8b45 Talk
stuff.each do |name|
  name = name.downcase
  #size
...

Ruby ungliness and long too

by uberholden.myopenid.com, September 10, 2009 13:15, 6 refactorings, tagged with rails, ruby, if, case, if else

any ideas on making this mo...

55502f40dc8b7c769880b10874abc9d0 Talk
def show
    
    if params[:course_id] && permitted_to?(:browse, :videos)
...

Ruby Need to DRY this if-else up

by fnjord.myopenid.com, March 25, 2009 17:43, 3 refactorings, tagged with rails, ruby, dry, conditions, if else

I thought of creating a bef...

321bbdb120165eebbaf37e781d4ec71b Talk