Cheah Chu Yeow
df5c9fd9f4
Update Memcached website to its new one at http://memcached.org/ .
2011-11-11 17:07:02 +08:00
Cheah Chu Yeow
e34e4d4330
Fix "in memory" where it should be "in-memory".
2011-11-11 17:04:50 +08:00
Vijay Dev
b9aaa317cf
update ci file name in contributing guide
2011-11-11 01:50:42 +05:30
Wojciech Wnętrzak
9ce5d5155b
fixed example code indentation
2011-11-10 18:52:39 +01:00
Jean Boussier
fd17ffc7a2
Fix a tiny typo in custom validators documentation
2011-11-10 18:49:37 +01:00
Alexey Vakhov
983a2dccaa
Cosmetic fix in number_to_currency docs
2011-11-10 09:45:57 +04:00
Vijay Dev
cff1d751d0
Merge branch 'master' of github.com:lifo/docrails
...
Conflicts:
railties/guides/source/active_record_querying.textile
2011-11-08 21:35:17 +05:30
Joost Baaij
1ffd5ec910
Replace example with SQL placeholder syntax.
...
This works just fine, is less code, and reduces the risk of someone implementing a SQL injection vulnerability.
2011-11-08 16:27:15 +01:00
Alexey Vakhov
979f3f894b
Fix small typo in link_to_function doc
2011-11-08 18:01:19 +04:00
José Valim
34f61f8b1d
Merge pull request #3568 from bfolkens/master-url_subdomain_with_numeric_host
...
Fix trouble using :subdomain in development environment when using numeric addresses.
2011-11-08 06:00:22 -08:00
Bradford Folkens
bd559b0068
Fix trouble using :subdomain in development environment when using numeric addresses.
...
See-also pull request #3561 from 3-1-stable
Otherwise the following occurs:
TypeError: can't convert nil into String
/Users/bfolkens/dev/bfolkens-rails-core/actionpack/lib/action_dispatch/http/url.rb:75:in host_or_subdomain_and_domain'
/Users/bfolkens/dev/bfolkens-rails-core/actionpack/lib/action_dispatch/http/url.rb:37:in url_for'
/Users/bfolkens/dev/bfolkens-rails-core/actionpack/lib/action_dispatch/routing/url_for.rb:147:in test_subdomain_may_be_accepted_with_numeric_host'
/Users/bfolkens/dev/bfolkens-rails-core/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in run'
/Users/bfolkens/dev/bfolkens-rails-core/activesupport/lib/active_support/callbacks.rb:426:in send'
/Users/bfolkens/dev/bfolkens-rails-core/activesupport/lib/active_support/callbacks.rb:81:in run'
2011-11-08 07:52:35 -06:00
José Valim
1347665d89
Merge pull request #3564 from arunagw/uncommitted_rake_fix
...
Should be checking if file exists or not.
2011-11-08 02:28:41 -08:00
Arun Agrawal
fe67501e62
Should be checking if file exists or not.
...
I found this bug when running rake test:uncommitted
on a newly generated rails app which don't have
test file for application_controller.
Can see detail here #3461
2011-11-08 15:51:47 +05:30
Xavier Noria
805e39b025
Merge pull request #3565 from arunagw/warning_remove_release_file
...
Warnings removed.
2011-11-08 01:24:58 -08:00
Arun Agrawal
b3175f6cb9
Warnings removed.
2011-11-08 14:28:28 +05:30
Vijay Dev
588faedaf4
Merge pull request #3563 from arunagw/changelog_to_md
...
CHANGELOG to CHANGELOG.md
2011-11-07 23:54:28 -08:00
Arun Agrawal
b53f77ec99
CHANGELOG to CHANGELOG.md
2011-11-08 12:56:51 +05:30
Vijay Dev
f5ca190bd3
fix typo again (Thanks Phillip Oertel)
2011-11-08 10:37:06 +05:30
José Valim
396638c3fd
Merge pull request #3552 from evtuhovich/master
...
Doc patch, DrbStore no more exists in rails
2011-11-07 07:09:06 -08:00
Ivan Evtukhovich
cf0a96bc6a
DrbStore removed from cache backends
2011-11-07 18:57:55 +04:00
Vijay Dev
6ac56ac93b
fix incorrect code example
2011-11-07 17:58:03 +05:30
Aaron Patterson
6a29ea04ae
Merge pull request #3549 from luckydev/rmethod
...
remove_method tests and changes
2011-11-07 03:02:26 -08:00
Anand
aabd61af8e
added remove_method core_ext tests
2011-11-07 16:22:52 +05:30
Anand
4cef581fcf
replaced remove and define method calls to :redefine
2011-11-07 16:22:30 +05:30
Xavier Noria
17ecdd388c
adds trailing +s to the output of EXPLAIN for MySQL
2011-11-07 02:01:56 -08:00
José Valim
1a8df8aa88
Merge pull request #3542 from amatsuda/controller_generator_remove_blank_line
...
Remove redundant blank line at the bottom of generated controller code
2011-11-07 01:56:03 -08:00
Xavier Noria
b454601be4
revises EXPLAIN tests for SQLite3
...
The output in Travis is a bit different. The SQLite
documentation (http://www.sqlite.org/eqp.html ) warns
output may change dramatically between releases. I
do not want to mock the result set because I want a
real EXPLAIN to happen. I prefer a test that may fail
in future releases than a test that may give false
positives in future releases.
2011-11-06 22:21:05 -08:00
Akira Matsuda
42cf5eba26
Remove redundant blank line at the bottom
2011-11-07 14:31:12 +09:00
Akira Matsuda
aff9e68cb5
document fix: remove_column takes multiple column_names
2011-11-07 14:03:33 +09:00
Aaron Patterson
bcdc2c00d3
Merge pull request #3541 from dvyjones/fix-datetime-warnings
...
Removed argument throwing warnings when running tests
2011-11-06 19:00:07 -08:00
Akira Matsuda
55b203dac1
self.up, self.down => up, down
2011-11-07 11:56:50 +09:00
Henrik Hodne
9a7d916ceb
Removed argument throwing warnings when running tests.
...
The last argument to DateTime.new/civil is the Julian day number for
when the calendar reform occured. DateTime ignores it if it's 0, and
sets it to the default of DateTime::ITALY instead, so we could just
leave it out. This also removes the warnings while running the
ActiveSupport tests (there still are some for the setup though).
2011-11-06 17:35:02 +01:00
Vijay Dev
4db1bd37cb
fix typo
2011-11-06 22:03:30 +05:30
Aaron Patterson
9b46613780
Merge pull request #3521 from nulogy/fix_postgres_adapter_to_handle_spaces_between_schemas
...
Fix postgres adapter to handle spaces between schemas
2011-11-06 13:16:07 -03:00
José Valim
6950639998
Merge pull request #3536 from pkumar/master
...
Make pluralize follow singularize's logic of uncountability check
2011-11-06 05:59:31 -08:00
Pavan Kumar Sunkara
1934b77406
Added the test case for #3537
2011-11-06 19:22:46 +05:30
Dalibor Nasevic
759906d512
Fixed stale doc in AbstractController::Layouts
2011-11-06 14:43:11 +01:00
Vijay Dev
8750c9a1cf
fix markups for plus in AR guide
2011-11-06 18:59:29 +05:30
Vijay Dev
17947cebc0
Merge branch 'master' of github.com:lifo/docrails
2011-11-06 17:27:44 +05:30
Jon Leighton
8a2f0a9623
RUBY_ENGINE is not defined on 1.8
2011-11-06 10:54:59 +00:00
Jon Leighton
fc988115f7
Implement a workaround for a bug in ruby-1.9.3p0.
...
The bug is that an error would be raised while attempting to convert a
template from one encoding to another.
Please see http://redmine.ruby-lang.org/issues/5564 for more details.
The workaround is to load all conversions into memory ahead of time,
and will only happen if the ruby version is *exactly* 1.9.3p0. The
hope is obviously that the underlying problem will be resolved in
the next patchlevel release of 1.9.3.
2011-11-06 10:40:00 +00:00
Jon Leighton
7776055e2d
Revert "Skip test_default_external_works on the CI for Ruby 1.9.3."
...
This reverts commit 10773f94ea .
2011-11-06 10:39:59 +00:00
José Valim
a02bb72cf7
Merge pull request #3537 from dvyjones/refactor-pluralize-singularize
...
Refactored pluralize and singularize into a common method
2011-11-06 02:20:06 -08:00
Henrik Hodne
52fa34faee
Refactored pluralize and singularize into a common method.
...
See diff discussion on rails/#3536.
2011-11-06 11:13:51 +01:00
Jon Leighton
62512b9fb9
Merge pull request #3535 from jmazzi/master
...
Update ActiveRecord#attribute_present? to work as documented
2011-11-06 01:27:29 -08:00
Alexey Vakhov
949b3e743f
Docs cosmetic fixes in Action View form_helper.rb
2011-11-06 11:46:28 +04:00
Justin Mazzi
c7d2078596
Update ActiveRecord#attribute_present? to work as documented
...
"Returns true if the specified attribute has been set by the user or by
a database load and is neither nil nor empty?"
Fixes #1613
2011-11-05 22:36:19 -04:00
Xavier Noria
e7b7b44123
implements AR::Relation#explain
...
This is a first implementation, EXPLAIN is highly
dependent on the database and I have made some
compromises.
On one hand, the method allows you to run the most
common EXPLAIN and that's it. If you want EXPLAIN
ANALYZE in PostgreSQL you need to do it by hand.
On the other hand, I've tried to construct a string
as close as possible to the ones built by the
respective shells. The rationale is that IMO the
user should feel at home with the output and
recognize it at first sight. Per database.
I don't know whether this implementation is going
to work well. Let's see whether people like it.
2011-11-05 18:30:19 -07:00
Xavier Noria
89d7372dac
Merge pull request #3534 from guilleiguaran/arel-git-gemfile
...
Add arel to Gemfile on apps generated in edge Rails
2011-11-05 17:28:52 -07:00
Guillermo Iguaran
44e751fdd4
Add arel to Gemfile on apps generated in edge Rails
2011-11-05 19:26:23 -05:00