José Valim
0920065772
Merge pull request #4676 from lest/patch-1
...
allow to pass multiple sources to audio/video tags without using array
2012-01-25 11:28:22 -08:00
Sergey Nartimov
08e5104a59
allow to pass multiple sources to audio/video tags without using array
2012-01-25 22:22:39 +03:00
Vijay Dev
73c53cd9eb
Merge pull request #4529 from ask4prasath/refactor
...
Refactored class methods on address render test
2012-01-25 11:18:48 -08:00
Aaron Patterson
e2edfe188c
Merge pull request #4645 from brainopia/deprecate_datetime_local_offset
...
Deprecate DateTime.local_offset
2012-01-25 11:07:22 -08:00
brainopia
b258bec431
Deprecate DateTime.local_offset
2012-01-25 23:04:40 +04:00
Vijay Dev
203771da9e
Merge branch 'master' of github.com:lifo/docrails
2012-01-26 00:00:40 +05:30
Vijay Dev
368f0fe2d3
Revert "Added Apache configuration for dynamic gzip content"
...
This reverts commit fce92fd8a7e407b034d189a652af81a06ac98730.
Reason: We want any config that goes into the guides to be 100% right
and I'm not entirely sure that this one is it. We already had a similar
config that was removed in
b1c20e37ec
2012-01-25 23:57:44 +05:30
Vijay Dev
b32ebf0461
minor text change [ci skip]
2012-01-25 23:57:33 +05:30
Aaron Patterson
c421870c7a
Merge pull request #4644 from ask4prasath/refactor_test
...
Replaced unwanted method and added to accessor for getter history
2012-01-25 09:40:45 -08:00
Aaron Patterson
eee5a6cfa0
Merge pull request #4646 from lest/patch-1
...
no need in separate MiniTest modules
2012-01-25 09:31:29 -08:00
Aaron Patterson
aa8ebea143
Merge pull request #4658 from pwim/unicode-paths
...
Test for unicode path support
2012-01-25 09:23:07 -08:00
Aaron Patterson
0581c1a95c
use fetch rather than both Hash#key? and Hash#[]
2012-01-25 09:23:03 -08:00
Jonathan del Strother
73e71c27f2
Fix translate_error reference for Error#add documentation
2012-01-25 15:02:20 +00:00
José Valim
148f849ca5
Merge pull request #4524 from nashby/datetime-18-code
...
remove ruby 1.8 related code
2012-01-25 06:59:09 -08:00
José Valim
a3b3643886
Merge pull request #4667 from carlosantoniodasilva/av-number-helper
...
Action View number helpers improvements
2012-01-25 05:15:09 -08:00
Carlos Antonio da Silva
74fabdf6c4
Do not mutate given options hash in number helpers
2012-01-25 10:51:00 -02:00
Carlos Antonio da Silva
c753e3af76
Refactor percentage helper
2012-01-25 10:51:00 -02:00
Carlos Antonio da Silva
1e78fed488
Refactor float number parsing
2012-01-25 10:50:58 -02:00
Carlos Antonio da Silva
fb22f93b38
Improve getting translations for number helpers
2012-01-25 10:16:47 -02:00
Carlos Antonio da Silva
b844bf6a65
Fix callbacks order for destroying an object in validations guide
...
Also add around save to creating/updating callbacks order, and fix save
example with no validation
2012-01-25 10:03:38 -02:00
Carlos Antonio da Silva
0186c5dcea
Improve field error proc example in validations guide
2012-01-25 10:03:37 -02:00
Carlos Antonio da Silva
84bd203b39
Change ActiveRecord::Errors to ActiveModel::Errors in guides
...
Use ActiveModel::Errors in inflection example docs as well.
Also fixes wrong information and link to locale file related to
Errors#full_messages in I18n guide.
2012-01-25 10:03:19 -02:00
José Valim
a6aea14e69
Merge pull request #4661 from janko-m/master
...
Modify video_tag a bit and make audio_tag able to accept multiple sources
2012-01-25 03:12:13 -08:00
Carlos Antonio da Silva
cd9a3b055d
Fix custom validation methods section in AR validations and callbacks guide
...
The methods validate_on_create and validate_on_update are not available
anymore in Rails, this removes them from the guide and adds an example
on how to use validate with the :on option.
2012-01-25 09:10:36 -02:00
Janko Marohnić
7d93e814e6
Make audio_tag able to receive multiple sources
2012-01-25 11:52:49 +01:00
Janko Marohnić
3339293280
Make path_to_video in video_tag apply to each source
2012-01-25 11:52:34 +01:00
José Valim
40295aa0ab
Merge pull request #4651 from paul/mysql-add-index-bug
...
Handle nil in add_index :length option in MySQL
2012-01-25 00:34:09 -08:00
Rohit Arondekar
8728575f10
remove extra 'the'
2012-01-25 10:35:51 +05:30
Paul Sadauskas
6cde635f34
Handle nil in add_index :length option in MySQL
...
Our schema.rb is being generated with an `add_index` line similar to this:
add_index "foo", ["foo", "bar"], :name => "xxx", :length => {"foo"=>8, "bar=>nil}
This is the same as it was on Rails 3.1.3, however, now when that
schema.rb is evaluated, its generating bad SQL in MySQL:
Mysql::Error: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax
to use near '))' at line 1: CREATE UNIQUE INDEX
`xxx` ON `foo` (`foo`(8), `bar`())
This commit adds a check for nil on the length attribute to prevent the
empty parens from being output.
2012-01-24 14:22:24 -07:00
Rafael Mendonça França
b1f8ba1383
Remove unused variables to avoid warnings
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2012-01-24 21:38:55 +01:00
Sergey Nartimov
9cb00a465f
no need in separate MiniTest modules
2012-01-24 23:25:51 +03:00
Aaron Patterson
6a88302a5f
Merge pull request #4606 from lest/patch-1
...
remove unnecessary AS::Concern usage
2012-01-24 12:07:56 -08:00
prasath
bf31d7b224
Removing unwanted method and adding to accessor for getter history
2012-01-25 01:34:04 +05:30
Aaron Patterson
6fe02f9a2c
deprecated AR::TestCase in favor of AS::TestCase
2012-01-24 12:01:53 -08:00
Aaron Patterson
dcf0558ae5
Moving AR::TestCase in to the AR tests directory
2012-01-24 12:01:52 -08:00
José Valim
c973fc7125
Merge pull request #4641 from rafaelfranca/date_select-fix-3-2
...
date_select fixes [3-2-stable]
2012-01-24 20:46:24 +01:00
Aaron Patterson
8478b0ca0b
Merge pull request #4514 from brainopia/update_timezone_offets
...
Update time zone offset information
2012-01-24 11:16:39 -08:00
Aaron Patterson
ad6f689bff
Merge pull request #3775 from karevn/master
...
Please pull my changes - they fix a rare problem with tests framework
2012-01-24 10:34:09 -08:00
Vijay Dev
d26a166cfb
fix some examples - method names can't start with a number
2012-01-24 23:53:56 +05:30
Aaron Patterson
82e2f19aac
Merge pull request #4630 from lest/patch-2
...
Use instance_eval instead of Proc#bind
2012-01-24 09:59:59 -08:00
Aaron Patterson
29aa20daa6
Merge pull request #4637 from railsaholic/error_message_fix
...
quote fix ` to ' in the ArgumentError message
2012-01-24 09:53:10 -08:00
Manoj
204aabc24c
quote fix ` to ' in the ArgumentError message
...
message quote fix
2012-01-24 22:10:06 +05:30
Xavier Noria
2580696c49
Merge pull request #4636 from sachin87/code_improved
...
code improved with better condition
2012-01-24 07:55:13 -08:00
Sachin87
4e79deff89
code improved
2012-01-24 21:18:37 +05:30
José Valim
352159888b
Merge pull request #4628 from rafaelfranca/fix-build
...
Fix broken build
2012-01-24 04:40:41 -08:00
José Valim
e23dbec330
Merge pull request #4596 from kennyj/fix_4344
...
Fix GH #4344 . Callback defined in a module is not triggered when the module extends an object under Rails 3.2rc2
2012-01-24 00:51:44 -08:00
kennyj
5e59d75536
Fix GH #4344 . A defined callback in extended module is called too.
2012-01-24 17:36:30 +09:00
Aaron Patterson
dea2523232
initialized the @segment_keys instance variable
2012-01-23 17:14:47 -08:00
Aaron Patterson
8d26f875f7
Added custom regexps to ASTs that have literal nodes on either side of
...
symbol nodes. Fixes #4585
2012-01-23 17:14:30 -08:00
Sergey Nartimov
3fbc042b58
Use instance_eval instead of Proc#bind
...
Proc#bind is not useful when called immediately and previous check for #call method is not correct
2012-01-23 23:28:18 +03:00