Module: FriendlyId::SimpleI18n::Model

Defined in:
lib/friendly_id/simple_i18n.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) set_friendly_id(text, locale = nil)



82
83
84
85
86
# File 'lib/friendly_id/simple_i18n.rb', line 82

def set_friendly_id(text, locale = nil)
  I18n.with_locale(locale || I18n.locale) do
    set_slug(normalize_friendly_id(text))
  end
end