1
2
3
4
  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, 2 refactorings, tagged with if else

easy one?

9fe77a0217c77ce4cb00096d863c8b45 Talk
1
2
3
4
<?php
function get_handle($type)
{
...

PHP Return the appropriate file...

by Nathan, February 09, 2010 00:35, 2 refactorings, tagged with if else, file handle

This method feels like it's...

D5145c421cd25af6fa577c15219add90 Talk
1
2
3
4
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 case, ruby, if else, if, rails

any ideas on making this mo...

Avatar Talk
1
2
3
4
  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 ruby, rails, if else, dry, conditions

I thought of creating a bef...

321bbdb120165eebbaf37e781d4ec71b Talk