Commit Graph

21924 Commits

Author SHA1 Message Date
Ken Collins
35d0b6029f Use existing #empty_insert_statement_value for an insert with no columns. 2011-04-24 12:52:28 -04:00
Josh Kalderimis
bf40c729c6 minor correction to the AMo mass-assignment security docs 2011-04-24 09:58:12 +02:00
Josh Kalderimis
f3b9d3aba8 added config.active_record.whitelist_attributes which creates an empty whitelist of attributes available for mass assignment for all models in your app 2011-04-24 09:58:12 +02:00
Josh Kalderimis
b3ba36830b updated the security guide on the updated mass-assignment security scopes addition, and assign_attributes in AR 2011-04-24 09:56:48 +02:00
Josh Kalderimis
a08d04bedf Added assign_attributes to Active Record which accepts a mass-assignment security scope using the :as option, while also allowing mass-assignment security to be bypassed using :with_protected 2011-04-24 09:53:18 +02:00
Josh Kalderimis
1054ebd613 AM mass assignment security attr_accessible and attr_protected now allow for scopes using :as => scope eg.
attr_accessible :name
    attr_accessible :name, :admin, :as => :admin
2011-04-24 09:53:18 +02:00
Xavier Noria
af1b48926f Merge branch 'master' of git://github.com/lifo/docrails
Conflicts:
	activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
2011-04-23 01:11:24 +02:00
Xavier Noria
df70b9dfb2 copy-edits 0e2644c 2011-04-23 00:54:20 +02:00
Xavier Noria
ca2f826f5a copy-edits e2656e0 2011-04-23 00:54:19 +02:00
Xavier Noria
2c50239216 copy-edits 3d45964 2011-04-23 00:54:19 +02:00
Xavier Noria
ec33de5dcb copy-edits 2f0dca5 2011-04-23 00:54:19 +02:00
Sebastian Martinez
1a7737353f Added docs for #drop_database on MySQL adapter 2011-04-22 19:44:30 -03:00
José Valim
f7538808d4 File watcher won't make the cut for 3.1. Maybe on 3.2. 2011-04-23 00:00:30 +02:00
Ronnie Miller
3050497a54 Grammer fix on note about wildcard routes 2011-04-22 14:50:52 -07:00
David Heinemeier Hansson
3f7a434d2e The example uses erb 2011-04-22 23:38:03 +02:00
Vijay Dev
e46e106c54 fix block alignment 2011-04-23 03:06:06 +05:30
José Valim
013d9016ca Use .erb in the test. 2011-04-22 23:25:52 +02:00
Vijay Dev
b22f39ec6f fix indentation 2011-04-23 02:54:07 +05:30
Vijay Dev
98b700e0bf add examples for array access methods 2011-04-23 02:54:07 +05:30
Vijay Dev
eac264d747 updating to_xml example to new AR api 2011-04-23 02:54:07 +05:30
Aaron Patterson
5bed6494d4 split indexes and column types on money / binary iteration 2011-04-22 15:41:13 -05:00
Aaron Patterson
3d19b356d7 fetch result row arrays from pg in C and return early if there are no money or binary columns. ❤️ 2011-04-22 15:41:13 -05:00
Aaron Patterson
3eae734012 set the backtrace to prevent AR exceptions from lying to us 2011-04-22 15:41:13 -05:00
Arun Agrawal
d42e43b3e5 Fixed images path in plugin_new_generator 2011-04-23 04:08:01 +08:00
Schneems
a8870d140e show http method in routing error message 2011-04-23 03:40:09 +08:00
Arun Agrawal
eb599295db Images path fixed in test. 2011-04-23 02:22:12 +08:00
David Heinemeier Hansson
bb6b17216d Need this for testing 2011-04-22 20:03:12 +02:00
David Heinemeier Hansson
89f315bfb2 We cant use assert_block because its buggy in MiniTest and wont actually show you the failure message you provide -- instead you just always get a "Expected block to return true" 2011-04-22 19:38:01 +02:00
Aaron Patterson
a37722182f removing incorrect comment and string concatenation 2011-04-22 12:21:59 -05:00
Pavel Forkert
96acdd3ec4 Added test case and fix for proper eager loading associations 2011-04-22 12:06:15 -05:00
Aaron Patterson
fe4932b531 bumping the pg requirements 2011-04-22 11:27:14 -05:00
Ken Collins
bc50c1cb02 The #substitute_at gets an ActiveRecord::ConnectionAdapters::Column in #insert to match replacement in #exec_query. 2011-04-23 00:15:33 +08:00
David Heinemeier Hansson
59ce0f695b Turn on JS/CSS compression by default 2011-04-22 18:06:59 +02:00
Sebastian Martinez
02ee2003a8 Added docs for #disconnect! on adapters 2011-04-22 12:59:05 -03:00
Sebastian Martinez
0e2644cde0 Added missing docs for clear_cache! on adapters 2011-04-22 12:53:02 -03:00
Joshua Peek
dab96a267e Add shorthand for js and css compressors 2011-04-22 10:49:55 -05:00
Sebastian Martinez
e2656e07b9 Added missing docs for +supports_primary_key?+ on some adapters 2011-04-22 12:45:46 -03:00
Sebastian Martinez
3d459645c6 Added missing docs for +support_migrations?+ on some adapters 2011-04-22 12:35:53 -03:00
Sebastian Martinez
00e9cbd78a Have a more connection specific rdoc for +supports_statement_cache?+ 2011-04-22 12:22:53 -03:00
Sebastian Martinez
20002850b3 Removed ON() on distinct comment 2011-04-22 12:14:47 -03:00
Semyon Perepelitsa
6822f39f67 Remove HTML escaping from Record Tag Helper docs. 2011-04-22 23:12:14 +08:00
Ken Collins
ed2820d6ec Move #exec_insert to abstract adapter's database statements. 2011-04-22 22:32:55 +08:00
Josh Kalderimis
0cf7b2f1b4 minor correction to the Active Model instantiate_observers doc 2011-04-22 15:24:11 +02:00
Cheah Chu Yeow
c389b832f0 Grammar fixes for Object#in? documentation. 2011-04-22 15:14:14 +08:00
Aaron Patterson
724a786677 stop using distinct on for the unique id queries. [#6450 state:resolved] 2011-04-21 22:47:13 -05:00
Joshua Peek
84f1b83df8 Only include SprocketsHelper into assets context 2011-04-21 11:03:56 -05:00
Joost Baaij
783007a8ad Replace example hostname with "example.com".
The hostname used in these comments actually exists, which is
undesirable. See also RFC 2606.
2011-04-21 16:32:02 +02:00
José Valim
d31af44012 Fix tests on 1.8 by explicitly checking for strings (which also improves performance). 2011-04-20 21:54:19 +02:00
Vijay Dev
2f0dca5ee0 document the Active Support extension - String#inquiry 2011-04-20 23:25:33 +05:30
Eric Anderson
a48f8089ab Exception got moved to ActiveModel with Rails 3 2011-04-20 10:43:35 -04:00