def id_found_or_limit_reached?
if @upload_uuid || @request_uuid || (body.size > MAX_BODY)
@data_buffer = nil
...
def validate_permalink(attr_name)
if permalink?
permalink = sanitize_permalink(attr_name)
...
Ruby Simple if staments
easy one?
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...
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...
The function should return ...