Default options in method for hash

Is there better way to write this:

def render_column_title(column, options)
title = (options[:column_titles] || {})[column] ||
Inflector::humanize(column)

end

thanks,
Bojan


Bojan M.
Informatika Mihelac, Bojan M. s.p. | www.informatikamihelac.com
-> tools, scripts, tricks from our code lab: http://source.mihelac.org

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs