Jurriaan Pruis
2d8396fc9f
Updated/changed useless tr/gsubs
2012-04-03 15:16:09 +02:00
Grant Hutchins
ee235b3d3a
Don't include deprecation in AM::Naming anymore
2012-03-31 21:37:24 -04:00
José Valim
e83e76eca4
Merge pull request #4904 from ask4prasath/refactor_dirty_module_with_helper
...
Changing active model dirty module helper method to more appropriate met...
2012-03-28 23:47:12 -07:00
Rafael Mendonça França
170956cdae
Remove code duplication in InclusionValidator and ExclusionValidator.
...
Orginal code by @jamescook
Closes #1352
[Rafael Mendonça França + James Cook]
2012-03-28 18:57:56 -03:00
Piotr Sarnacki
c82fd8fc2a
Allow ActiveModel::Name to duck type
2012-03-28 18:25:06 +02:00
Aaron Patterson
65f4d8019f
no need to freeze things all the time
2012-03-26 11:34:01 -07:00
Aaron Patterson
6289f455ae
test against ruby features in order to fix tests on Ruby 2.0
2012-03-26 11:32:21 -07:00
Lukasz Sarnacki
72cbccb5f7
ActiveModel::Name does not inherit from string
2012-03-26 20:15:04 +02:00
José Valim
35e8de6344
Merge pull request #5374 from nertzy/remove_deprecated_partial_path_from_active_model_naming
...
Remove ActiveModel::Naming#partial_path
2012-03-23 05:57:35 -07:00
José Valim
034ccf4048
Speed up mass assignment by avoiding extra loops.
2012-03-16 13:40:42 +01:00
José Valim
eb8f0ddb67
Revert "AM::MassAssingmentSecurity: improve performance"
...
It introduces backwards incompatible changes in the API.
This reverts commit 7d1379ffdb
.
2012-03-15 18:41:54 +01:00
Bogdan Gusiev
7d1379ffdb
AM::MassAssingmentSecurity: improve performance
2012-03-14 14:11:52 +02:00
Prem Sichanugrist
f1637bf2bb
Remove Active Resource source files from the repository
...
Dear Active Resource,
It's not that I hate you or anything, but you didn't get much attention lately. There're so many alternatives out there, and I think people have made their choice to use them than you. I think it's time for you to have a big rest, peacefully in this Git repository.
I will miss you,
@sikachu.
2012-03-13 14:55:44 -04:00
Grant Hutchins
bf8d7574bf
Remove ActiveModel::Naming#partial_path
...
It was deprecated in 3.2
2012-03-10 18:02:36 -05:00
Grant Hutchins
e78c5eeba1
Fix comments about to_partial_path
2012-03-10 17:40:27 -05:00
Carlos Antonio da Silva
3508da50f0
Rename variable to avoid using name "include"
...
Better syntax highlight :)
2012-03-09 22:07:59 -03:00
Carlos Antonio da Silva
3d04d726fd
Remove Array#wrap usage in AMo serialization
2012-03-09 21:56:05 -03:00
Carlos Antonio da Silva
10c3304db6
Make sure serializable hash with :include always returns string keys
2012-03-09 21:51:12 -03:00
José Valim
225eff9d61
Merge pull request #5351 from shanna/master
...
Missing active_model/naming.rb dependency.
2012-03-08 23:26:48 -08:00
Shane Hanna
2b97b8fb9e
Added missing ActiveModel::Naming dependency.
...
ActiveModel::Name constructor expects to be able to call #blank? on a
String but the core Object#blank? extension is never required.
2012-03-09 15:46:24 +11:00
Rafael Mendonça França
d804790634
Fix my name in the CHANGELOG to follow the convention
...
Also add missing entries and use the formating convention
2012-03-09 00:54:21 -03:00
Vijay Dev
db6542178c
changelog updates for Rails 4 [ci skip]
2012-03-09 02:22:17 +05:30
Vijay Dev
188d1d2787
Merge branch 'master' of github.com:lifo/docrails
2012-03-09 00:07:59 +05:30
Carlos Antonio da Silva
e64dbb5b36
Improve docs for attr_accessible|protected related to Hash#except|slice
2012-03-06 23:52:03 -03:00
Vijay Dev
c0a7999115
minor corrections in AMo::Model docs [ci skip]
2012-03-05 22:46:44 +05:30
Guillermo Iguaran
247706e259
Use public_send instead of send in ActiveModel::Model initialize
2012-03-03 10:36:03 -05:00
Carlos Antonio da Silva
cb9d03f0d4
Add docs with usage examples for ActiveModel::Model
...
Also add test to ensure basic model does not explode when
initialized with nil.
2012-03-03 04:45:30 -03:00
Guillermo Iguaran
3b822e91d1
Add ActiveModel::Model, a mixin to make Ruby objects to work with AP inmediatly
2012-03-02 23:59:55 -05:00
claudiob
05c6caf48c
Add release dates to documentation
...
Set "March 1, 2012" as the release date for 3.2.2, 3.1.4, 3.0.12
2012-03-01 11:20:03 -08:00
Paco Guzman
152a393d4f
Update changelogs with rails 3.0-stable branch info
2012-02-25 13:50:08 +01:00
Xavier Noria
7f2548e34d
Merge pull request #5130 from dlee/revised_patch_verb
...
Add config.default_method_for_update to support PATCH
2012-02-22 09:00:53 -08:00
David Lee
002713c645
Add config.default_method_for_update to support PATCH
...
PATCH is the correct HTML verb to map to the #update action. The
semantics for PATCH allows for partial updates, whereas PUT requires a
complete replacement.
Changes:
* adds config.default_method_for_update you can set to :patch
* optionally use PATCH instead of PUT in resource routes and forms
* adds the #patch verb to routes to detect PATCH requests
* adds #patch? to Request
* changes documentation and comments to indicate support for PATCH
This change maintains complete backwards compatibility by keeping :put
as the default for config.default_method_for_update.
2012-02-22 08:47:10 -08:00
Benjamin Quorning
5742f12b78
Prefer || over 'or' for boolean operations
2012-02-22 10:13:27 +01:00
Aaron Patterson
5d0c1814ad
ruby 2.0 makes protected methods return false for respond_to, so pass true as the second param
2012-02-21 10:33:16 -08:00
Bogdan Gusiev
534dc4ca1a
AM::Errors: allow :full_messages parameter for #as_json
2012-02-20 11:17:11 +02:00
Fabio Yamate
d204918f91
Fix sanitize_for_mass_assigment when role is nil
...
There is an example in Rails documentation that suggests implementing
assign_attributes method for ActiveModel interface, that by default
sends option role with nil. Since mass_assignment_authorizer never
is called without args, we can move the default value internally.
2012-02-15 11:13:54 -02:00
Sergey Nartimov
b5f5e279a6
remove unnecessary require core_ext/string/encoding
2012-02-14 10:09:21 +03:00
Aaron Patterson
9bcfb1a974
Merge pull request #5018 from hammerdr/issue-4659-docs
...
Adding documentation to clarify usage of attributes hash.
2012-02-13 09:00:59 -08:00
Carlos Antonio da Silva
ad9f968c4a
Make sure serializable hash with :methods option returns always string keys
2012-02-13 11:22:59 -02:00
Carlos Antonio da Silva
5bcb4e3c18
Cleanup extra spaces
2012-02-13 11:20:19 -02:00
Derek Hammer
a3a1a6f9ed
Missed a code example. Fixing the docs to be consistant.
2012-02-12 08:17:18 -06:00
Derek Hammer
a469ec787c
Adding documentation to clarify usage of attributes hash.
...
Serialization uses only the attributes hash's keys and calls
methods that are of the same name as the keys on the serialized
object.
2012-02-12 08:08:09 -06:00
Vijay Dev
e6c98b83cb
Merge branch 'master' of github.com:lifo/docrails
...
Conflicts:
activerecord/lib/active_record/relation/query_methods.rb
2012-02-09 23:44:17 +05:30
prasath
848ee296ec
test title changed corresponding to the test
2012-02-09 02:11:36 +05:30
Aaron Patterson
06b9c905a9
Merge pull request #4930 from ask4prasath/ordered_hash_replaced
...
Replacing ordered hash to ruby hash on active model
2012-02-08 08:59:00 -08:00
Carlos Antonio da Silva
9296996029
Fixes in AMo README
2012-02-07 20:29:14 -02:00
José Valim
91bb008c0b
Update README to mention lint.
2012-02-07 23:17:24 +01:00
José Valim
a17d047a73
Trim down Active Model API by removing valid? and errors.full_messages
2012-02-07 23:10:43 +01:00
prasath
47628ec128
replacing ordered hash to ruby hash
2012-02-08 00:34:47 +05:30
Prasath Venkatraman
5e70522100
Changing active model dirty module helper method to more appropriate method with helper #4903
...
Changing active model dirty module helper method to more appropriate method with helper with Active Support Helper #4903
Changing active model dirty module helper method to more appropriate method with helper with Active Support Helper typo fixed #4903
2012-02-06 18:10:27 +05:30