Aaron Patterson
ab802e72dc
locale and default_locale may be the same, so uniq the array
2011-12-13 11:28:30 -08:00
Aaron Patterson
9d87a67590
stop freezing the details hash
2011-12-13 11:25:03 -08:00
Aaron Patterson
8b85e4a4a1
stop freezing hash value
2011-12-13 11:13:14 -08:00
José Valim
0f4da5b393
Fix failing AP tests.
2011-12-13 15:45:16 +01:00
José Valim
1668b900b5
Merge pull request #3963 from lest/logger-missing-require
...
missing require in buffered logger
2011-12-13 02:33:05 -08:00
José Valim
80256abb39
FileUpdateChecker should be able to handle deleted files.
2011-12-13 11:23:21 +01:00
lest
d060d6d131
missing require in buffered logger
2011-12-13 12:36:32 +03:00
José Valim
1f5b9bbdb3
Clean up FileUpdateChecker API.
2011-12-13 10:07:02 +01:00
José Valim
693d2be827
Move hooks back to initializers (we need an API that allows hooks to be replaced).
2011-12-13 09:29:18 +01:00
José Valim
cd3033eb62
Add config.file_watcher so developers can provide their own watchers (for instance, hooking on fsevents).
2011-12-13 09:29:18 +01:00
José Valim
148d15d824
Merge pull request #3958 from lest/comment-on-whitelist
...
commented whitelist mode enforcement for mass assignment
2011-12-12 23:57:02 -08:00
José Valim
f9df3ef845
Merge pull request #3960 from lest/activesupport-test-missing-require
...
missing require in activesupport test
2011-12-12 23:56:00 -08:00
José Valim
11aa167e23
Revert "Provide a unique point for running initializers."
...
This reverts commit c2e3ce8d1e .
Conflicts:
railties/lib/rails/application/configuration.rb
railties/lib/rails/application/finisher.rb
railties/lib/rails/engine.rb
2011-12-13 08:52:52 +01:00
lest
8a9cf790db
missing require in activesupport test
2011-12-13 10:33:58 +03:00
lest
f2fa4837a8
commented whitelist mode enforcement for mass assignment
2011-12-13 10:14:38 +03:00
Aaron Patterson
810837dda8
use Array#join so that file encoding doesn't impact returned string.
...
Fixes #3957
2011-12-12 19:45:16 -08:00
Piotr Sarnacki
3d4f913f77
Merge pull request #3950 from guilleiguaran/use-https-for-rubygems-in-apps
...
Use rubygems https endpoint for the Gemfile on new apps
2011-12-12 17:45:18 -08:00
Aaron Patterson
676092f761
logger adds a newline for us
2011-12-12 16:02:59 -08:00
Aaron Patterson
d12e6d0e2f
use the schema cache when asking for the primary key
2011-12-12 15:59:44 -08:00
José Valim
400929fb44
Merge pull request #3943 from sferik/add_explicit_requires
...
Include TagHelper but don't explicitly require it
2011-12-12 14:11:16 -08:00
Erik Michaels-Ober
196407c54f
Include TagHelper but don't explicitly require it
...
Allow autoloading to work as intended and avoid multiple requires.
2011-12-12 14:05:25 -08:00
José Valim
ffa8bfeed9
Merge pull request #3954 from bdurand/null_store_2
...
Add ActiveSupport::Cache::NullStore for testing and development
2011-12-12 14:03:50 -08:00
José Valim
fa1d9a884c
Speed up development by only reloading classes if dependencies files changed.
...
This can be turned off by setting `config.reload_classes_only_on_change` to false.
Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to `config.watchable_files` if they want their changes to affect classes reloading.
Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3
2011-12-12 22:54:04 +01:00
José Valim
62cda03fa8
Provide a dir => extension API to file update checker.
2011-12-12 22:54:04 +01:00
Aaron Patterson
b04e2d86df
strip whitespace errors from the generated Gemfile
2011-12-12 13:46:16 -08:00
Brian Durand
04d5eae4e8
Add ActiveSupport::Cache::NullStore to expose caching interface without actually caching for development and test environments.
2011-12-12 13:40:29 -06:00
José Valim
ede647a505
Allow reloader to be configured.
2011-12-12 19:41:17 +01:00
José Valim
9a51053c1d
Update checker returns a boolean if callback was executed or not.
2011-12-12 19:41:17 +01:00
Guillermo Iguaran
f8fa383531
Use rubygems https endpoint for the Gemfile on new apps
2011-12-12 12:37:37 -05:00
Santiago Pastorino
2fdc3ab0f1
Merge pull request #3948 from sferik/use_https_rubygems_source
...
Use HTTPS rubygems source
2011-12-12 09:31:19 -08:00
José Valim
af308ff376
Merge pull request #3946 from pokonski/relative_root
...
Fix #3365 . Default config.relative_url_root to ENV["RAILS_RELATIVE_URL_ROOT"].
2011-12-12 09:14:48 -08:00
Erik Michaels-Ober
3ffa01c426
Make quotes in Gemfile consistent (use single quotes)
2011-12-12 08:16:54 -08:00
Erik Michaels-Ober
efc74f5638
Use HTTPS rubygems source
2011-12-12 08:16:38 -08:00
Piotrek Okoński
5266eb9f61
Default relative_url_root to ENV["RAILS_RELATIVE_URL_ROOT"]. Fixes #3365
2011-12-12 17:11:07 +01:00
José Valim
c046660328
Give hooks the flexibility to choose the type of callback.
2011-12-12 16:23:50 +01:00
José Valim
c2e3ce8d1e
Provide a unique point for running initializers.
2011-12-12 15:35:27 +01:00
José Valim
27f0add3f9
Improve docs for Rails::Application and add routes_reloader_hook and app_reloader_hooks.
2011-12-12 15:18:19 +01:00
José Valim
57e0c038d6
Allow FileUpdateChecker to work with globs.
2011-12-12 14:57:09 +01:00
José Valim
5c234ab8ed
Composition > inheritance.
2011-12-12 14:57:09 +01:00
Jeremy Kemper
9147613ce0
Remove duplicate html_escape docs
2011-12-11 15:56:21 -07:00
Jeremy Kemper
63cd943226
Use 1.9 native XML escaping to speed up html_escape and shush regexp warnings
...
length user system total real
before 6 0.010000 0.000000 0.010000 ( 0.012378)
after 6 0.010000 0.000000 0.010000 ( 0.012866)
before 60 0.040000 0.000000 0.040000 ( 0.046273)
after 60 0.040000 0.000000 0.040000 ( 0.036421)
before 600 0.390000 0.000000 0.390000 ( 0.390670)
after 600 0.210000 0.000000 0.210000 ( 0.209094)
before 6000 3.750000 0.000000 3.750000 ( 3.751008)
after 6000 1.860000 0.000000 1.860000 ( 1.857901)
2011-12-11 15:51:43 -07:00
Lennart Fridén
dc43e402a1
Added :use_two_digit_numbers option [Lennart Fridén & Kim Persson]
...
Added use_two_digit_numbers select_tag option for displaying months and days with leading zeros without affecting the values (useful for e.g. ISO-style dates, 2011-08-01).
Signed-off-by: José Valim <jose.valim@gmail.com >
Conflicts:
actionpack/CHANGELOG.md
2011-12-11 22:54:28 +01:00
José Valim
a8f2b203b4
Merge pull request #3941 from azimux/fix_nested_under_indifferent_access
...
Overrode Hash#nested_under_indifferent_access in HashWithIndifferentAccess
2011-12-11 13:20:55 -08:00
Miles Georgi
3d6eafe32e
Overrode Hash#nested_under_indifferent_access in HashWithIndifferentAccess
...
to return self.
2011-12-11 13:08:50 -08:00
Vijay Dev
6887aed31b
update command line guide: generated README is now an rdoc
2011-12-11 23:18:49 +05:30
Yehuda Katz
75a9d88f5f
Merge pull request #3936 from guilleiguaran/skip-assets-options-when-sprockets-skipped
...
Skip assets options in environments files when --skip-sprockets is used
2011-12-11 09:26:36 -08:00
Vijay Dev
aa6aa9b25d
revising doc
2011-12-11 22:53:59 +05:30
José Valim
78de996562
Merge pull request #3933 from wfarr/master
...
Add button_tag support to ActionView::Helpers::FormBuilder
2011-12-11 06:06:41 -08:00
Will Farrington
3f65e7f7be
Add button_tag support to ActionView::Helpers::FormBuilder.
...
This support is near-identical to the existing submit_tag support.
Example:
<%= form_for @post do |f| %>
<%= f.button %>
<% end %>
2011-12-11 08:56:26 -05:00
Guillermo Iguaran
ea5a70a462
Skip assets options in environments files when --skip-sprockets is used
2011-12-11 08:55:01 -05:00