[katello-devel] Updated Ruby style guide

Lukas Zapletal lzap at redhat.com
Tue Oct 16 09:16:35 UTC 2012


On Mon, Oct 15, 2012 at 08:14:41AM -0400, David Davis wrote:
> There's no reason why this line couldn't be:
> 
>   before_filter :find_role, :except => [:index, :items, :new, :create, 
>     :verbs_and_scopes, :auto_complete_search, :create_ldap_group,
>     :destroy_ldap_group]
>

TBH I'd go for:

    before_filter :find_role, :except => [
      :index,
      :items,
      :new,
    ...

Easier edits and still readable.

LZ

-- 
Later,

 Lukas "lzap" Zapletal
 #katello #systemengine




More information about the katello-devel mailing list