padrino/padrino-contrib — Issue #4: Find by field with locale
Author: IoSnTia
Created: 2011-11-12 10:19:28+00:00
State: open

ex:

`rb
Post Model

field :title_en, :title_it, :title_fr
has_locale

def self.find_by_title(value=nil)
send('find_by_title_#{I18n.loale}', value)
end

`