Skip to content

Commit

Permalink
Locale files should be added by responder.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Feb 7, 2010
1 parent 1cc6d62 commit 05dbab4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 21 deletions.
5 changes: 0 additions & 5 deletions lib/inherited_resources.rb
Expand Up @@ -21,11 +21,6 @@ def self.flash_keys=(array)

class Railtie < ::Rails::Railtie
railtie_name :inherited_resources

# Add load paths straight to I18n, so engines and application can overwrite it.
require 'active_support/i18n'
I18n.load_path << File.expand_path('../locales/en.yml', __FILE__)

config.generators.scaffold_controller = :inherited_resources_controller
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/inherited_resources/version.rb
@@ -1,3 +1,3 @@
module InheritedResources
VERSION = '1.1.pre'.freeze
VERSION = '1.1.0'.freeze
end
10 changes: 0 additions & 10 deletions lib/locales/en.yml

This file was deleted.

5 changes: 0 additions & 5 deletions test/test_helper.rb
Expand Up @@ -17,18 +17,13 @@
ENV["RAILS_ENV"] = "test"
RAILS_ROOT = "anywhere"

gem "activesupport", "3.0.0.beta"
require "active_support"

gem "activemodel", "3.0.0.beta"
require "active_model"

gem "actionpack", "3.0.0.beta"
require "action_controller"
require "action_dispatch/middleware/flash"

require "rails/railtie"
require "rails/backtrace_cleaner"

I18n.load_path << File.join(File.dirname(__FILE__), 'locales', 'en.yml')
I18n.reload!
Expand Down

0 comments on commit 05dbab4

Please sign in to comment.