Lawrence Pit
9bd91b00b8
Favor %{} in all code instead of (deprecated) {{}} as interpolation syntax for I18n
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-03 13:37:32 +02:00
José Valim
13867a3f5f
Use %{} syntax in I18n (faster) instead of {{}}.
2010-05-01 12:54:52 +02:00
Neeraj Singh
883f27aa9a
test cases for record.to_xml [ #458 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-30 13:19:30 +02:00
José Valim
2e9af3638d
Move several configuration values from Hash to ActiveSupport::XmlMini, which both Hash and Array depends on.
...
Also, refactored ActiveModel serializers to just use ActiveSupport::XmlMini.to_tag. As consequence, if a serialized attribute is an array or a hash, it's not encoded as yaml, but as a hash or array.
2010-04-29 12:42:42 +02:00
Neeraj Singh
580dd3b052
array.to_xml should be able to handle all types of data elements [ #4490 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-29 09:04:34 +02:00
Santiago Pastorino
ce48b3103a
Makes validates_acceptance_of to not override database fields [ #4460 state:committed]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-28 23:12:03 +02:00
reu
77c099c231
Fix validates_numericaly_of only integer error message [ #4406 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-25 10:14:15 +02:00
José Valim
9476daa829
Speed up xml serializer by computing values just once and remove unecessary code duplication.
2010-04-22 12:29:08 +02:00
Jeremy Kemper
1924cff934
Fix Active Model observer tests
2010-04-16 13:14:52 -07:00
Mislav Marohnić
c2ca73c9ee
ActiveModel::Observing: stop using Observable Ruby module, re-implement notify_observers
...
`Observable#notify_observers` from Ruby always returns false (which halts ActiveRecord
callback chains) and has extra features (like `changed`) that were never used.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-16 13:09:07 -07:00
David Heinemeier Hansson
4c8af9bf51
Update changelogs for release
2010-04-13 12:14:54 -07:00
Ryan Bigg
d748cc3cd0
Re-define empty? for errors to check if the values inside the OrderedHash are empty rather than the OrderedHash itself. [ #4356 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-10 13:21:20 +02:00
José Valim
ee309d506c
Update versions (otherwise you install a gem from source as beta3 but internally it's beta2) and update CHANGELOG.
2010-04-10 12:17:34 +02:00
Santiago Pastorino
13e00ce606
fix stack trace lines on class_eval
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-09 21:28:49 +02:00
Aaron Patterson
30f3a3df77
errors.rb needs to be declared as UTF-8 [ #3941 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-04-02 09:14:55 -07:00
Sam Pohlenz
3adaef8ae7
Restore changed_attributes method in ActiveModel::Dirty and loosen expectation on including class' initialize method.
...
[#4308 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-01 17:52:45 -07:00
David Heinemeier Hansson
f0364d87f0
Release is today, yo
2010-04-01 14:20:03 -07:00
wycats
c1883e75b3
Updated changelogs to differentiate beta1 and beta2
2010-04-01 14:04:55 -07:00
wycats
d2a48852a1
Updated changelogs
2010-04-01 13:55:06 -07:00
David Heinemeier Hansson
d956003fa4
Neat and tidy, I say
2010-04-01 13:46:04 -07:00
David Heinemeier Hansson
9b71c55d3d
Make your bed and clean up your gemspecs!
2010-04-01 13:44:09 -07:00
David Heinemeier Hansson
d868cb4f8a
Prep for beta2, depend on latest Bundler
2010-04-01 13:36:45 -07:00
Jeremy Kemper
7e3b4c1f2f
Merge branch 'master' of github.com:rails/rails
2010-03-28 11:34:16 -07:00
Jeremy Kemper
d1f3437cac
Cosmetics: mismatch indentation
2010-03-28 11:34:09 -07:00
Xavier Noria
76f024ac8d
adds missing requires for Object#blank? and Object#present?
2010-03-28 14:15:02 +02:00
Xavier Noria
3b1c69d2dd
adds a few requires in active_model/dirty.rb
...
[#4284 state:committed]
2010-03-28 12:43:20 +02:00
Jeremy Kemper
a98db7c6ef
Use Array.wrap uniformly
2010-03-27 11:50:11 -07:00
Jeremy Kemper
c3cea9b594
Fix unstated dep on HWIA
2010-03-27 11:03:36 -07:00
José Valim
f1da7174cc
Fix tests added in previous commit.
2010-03-27 11:04:21 +01:00
Jacob Atzen
a5d637d86c
ActiveModel::Dirty#changes should return a HashWithIndifferentAccess [ #4157 state:resolved]
...
Keep the Rails style of inject
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-27 10:48:32 +01:00
wycats
197904341f
Merge branch 'master' into docrails
2010-03-26 15:10:24 -07:00
José Valim
4c7c406155
Remove reference to unexistent methods and fix typo.
2010-03-26 01:12:24 +01:00
Aaron Patterson
b652aa8121
cleaning up a bunch of method already defined warnings [ #4209 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-17 13:56:33 -07:00
Aaron Patterson
df735cf5b7
fisting uninitialized ivar warnings. [ #4198 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-16 15:11:00 -07:00
Aaron Patterson
8c3e46c093
clean up more warnings, remove unnecessary methods, fix eval line numbers. [ #4193 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-16 11:48:34 -07:00
Pratik Naik
e68bfaf1fe
Merge remote branch 'mainstream/master'
...
Conflicts:
activerecord/lib/active_record/base.rb
railties/lib/rails/configuration.rb
railties/lib/rails/log_subscriber.rb
2010-03-12 16:00:01 +00:00
Stefan Penner
4bc2cbc3cf
Load RAILS_VERSION relative to the gemspec file.
2010-03-06 21:33:28 -08:00
Bryan Helmkamp
deb00bcb8c
Read Rails version from a file instead of modifying the load path and doing requires
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-04 21:25:52 -08:00
Jeremy Kemper
5c40c2691d
Stray line. Typo.
2010-03-02 10:44:40 -08:00
Jeremy Kemper
56ea20605a
Wordsmith gem descriptions
2010-03-02 10:43:41 -08:00
Bryan Helmkamp
f221a6f19f
Leverage VERSION constants from gemspecs to avoid tedious updates when releasing
2010-03-02 00:32:53 -05:00
Bryan Helmkamp
a4111bbca0
Update versions of all components to normalize them to new format
2010-03-02 00:32:48 -05:00
Bryan Helmkamp
11db694e0b
Remove cruft in the gem packaging and release code
2010-03-01 19:00:19 -08:00
Joshua Peek
4377deed35
ensure activemodel lib is setup correctly
2010-02-28 18:27:00 -06:00
Joshua Peek
1a2fba1b6b
don't expand test path
2010-02-28 18:26:00 -06:00
José Valim
ae8070e21b
Add missing information about attributes method.
2010-02-28 11:43:13 +01:00
José Valim
32afcdcb88
ActiveModel::Lint should not require our models to respond to id.
2010-02-28 11:39:39 +01:00
Jeremy Kemper
2ba6049506
Accept array of attributes as arg also, like 2.3
2010-02-25 13:07:48 -08:00
Jeremy Kemper
f7b0a857e9
Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.
2010-02-25 09:32:29 -08:00
Carlhuda
24ab5665b2
Revert "Fix test load paths for those not using bundler"
...
This reverts commit eec2d301d4 .
This commit broke tests. You cannot have a file called "bundler" on the load path.
2010-02-23 17:31:17 -08:00