Sha256: bf2eeee7853bcb8c507abf0b12d412c373dc2803e43580894513ea0d9604aa0a

Contents?: true

Size: 934 Bytes

Versions: 6

Compression:

Stored size: 934 Bytes

Contents

# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
  helper :all # include all helpers, all the time
  protect_from_forgery # See ActionController::RequestForgeryProtection for details
  # Scrub sensitive parameters from your log
  # filter_parameter_logging :password

  # Initialize GetText and Content-Type.
  # You need to call this once a request from WWW browser.
  # You can select the scope of the textdomain.
  # 1. If you call init_gettext in ApplicationControler,
  #    The textdomain apply whole your application.
  # 2. If you call init_gettext in each controllers
  #    (In this sample, blog_controller.rb is applicable)
  #    The textdomains are applied to each controllers/views.
  init_gettext "rails_test"  # textdomain, options(:charset, :content_type)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gettext_rails-2.1.0 test/app/controllers/application_controller.rb
gettext_rails-2.0.2 test/app/controllers/application_controller.rb
gettext_rails-2.0.0 test/app/controllers/application_controller.rb
gettext_rails-2.0.1 test/app/controllers/application_controller.rb
gettext_rails-2.0.3 test/app/controllers/application_controller.rb
gettext_rails-2.0.4 test/app/controllers/application_controller.rb