Splits initializer.
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@1615 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
-11
@@ -15,14 +15,3 @@ ActiveRecord::Errors.default_error_messages = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| "#{html_tag}" }
|
ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| "#{html_tag}" }
|
||||||
|
|
||||||
Mime::SET << Mime::CSV unless Mime::SET.include?(Mime::CSV)
|
|
||||||
Mime::Type.register 'application/pdf', :pdf
|
|
||||||
|
|
||||||
GLoc.set_config :default_language => :en
|
|
||||||
GLoc.clear_strings
|
|
||||||
GLoc.set_kcode
|
|
||||||
GLoc.load_localized_strings
|
|
||||||
GLoc.set_config(:raise_string_not_found_errors => false)
|
|
||||||
|
|
||||||
require 'redmine'
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# Add new mime types for use in respond_to blocks:
|
||||||
|
|
||||||
|
Mime::SET << Mime::CSV unless Mime::SET.include?(Mime::CSV)
|
||||||
|
Mime::Type.register 'application/pdf', :pdf
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
GLoc.set_config :default_language => :en
|
||||||
|
GLoc.clear_strings
|
||||||
|
GLoc.set_kcode
|
||||||
|
GLoc.load_localized_strings
|
||||||
|
GLoc.set_config(:raise_string_not_found_errors => false)
|
||||||
|
|
||||||
|
require 'redmine'
|
||||||
Reference in New Issue
Block a user