Top Level Namespace

Defined Under Namespace

Modules: ActionView, ActiveRecord, Gluttonberg Classes: Ability, Array, AudioJob, BlogMigration, Flag, GalleryController, GluttonbergMigration, MemberNotifier, MemberSession, MyFile, Notifier, PaginationListLinkRenderer, User, UserSession

Instance Method Summary collapse

Instance Method Details

#current_localeObject

Returns the locale stored in the current thread. This value is set either explicitly in the backend, or via the DEFER_TO_PROC in the router.



3
4
5
# File 'lib/gluttonberg/extensions/kernel.rb', line 3

def current_locale
  Thread.current[:locale]
end