Flowdock

Notes posted by Alex2222

RSS feed
June 29, 2011
1 thank

Default values

For common attributes in several models, you can set a default human name like this:

de.yml

de:
  attributes:
    bez: Bezeichnung
    abk: Abk├╝rzung
January 6, 2010
0 thanks

Alternative:

without using at

[:a, :b, :c].try(:[], 1)