From 7bf757d8b8b124e93c035bcb7ce0259c6dc659cd Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 23 Feb 2007 00:53:22 +0000 Subject: Include two default initializers as examples git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/configs/initializers/inflections.rb | 8 ++++++++ railties/configs/initializers/mime_types.rb | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 railties/configs/initializers/inflections.rb create mode 100644 railties/configs/initializers/mime_types.rb (limited to 'railties/configs') diff --git a/railties/configs/initializers/inflections.rb b/railties/configs/initializers/inflections.rb new file mode 100644 index 0000000000..a372f170b5 --- /dev/null +++ b/railties/configs/initializers/inflections.rb @@ -0,0 +1,8 @@ +# Add new inflection rules using the following format +# (all these examples are active by default): +# Inflector.inflections do |inflect| +# inflect.plural /^(ox)$/i, '\1en' +# inflect.singular /^(ox)en/i, '\1' +# inflect.irregular 'person', 'people' +# inflect.uncountable %w( fish sheep ) +# end \ No newline at end of file diff --git a/railties/configs/initializers/mime_types.rb b/railties/configs/initializers/mime_types.rb new file mode 100644 index 0000000000..43fde08ce5 --- /dev/null +++ b/railties/configs/initializers/mime_types.rb @@ -0,0 +1,3 @@ +# Add new mime types for use in respond_to blocks: +# Mime::Type.register "text/richtext", :rtf +# Mime::Type.register "application/x-mobile", :mobile \ No newline at end of file -- cgit v1.2.3