Commit Graph

21942 Commits

Author SHA1 Message Date
Aaron Patterson
17fec021d1 Merged pull request #300 from arunagw/jdbc_test.
Start Adding jdbcmysql support to new rails template.
2011-04-25 09:20:40 -07:00
Aaron Patterson
2fc8d7ea90 Merged pull request #302 from metaskills/empty_inserts.
Use existing #empty_insert_statement_value for an insert with no columns.
2011-04-25 09:18:39 -07:00
Piotr Sarnacki
f545a5081e Fix tests, main_app mounted helper must be defined explicitly now. 2011-04-25 17:57:52 +02:00
Piotr Sarnacki
d4bea35f1a Make ActionController::Base.modules_for_helpers and ActionController::Base.all_helpers_from_path public methods 2011-04-25 15:02:41 +02:00
Piotr Sarnacki
820c0feda3 Explicitly define main_app proxy 2011-04-25 14:56:58 +02:00
Piotr Sarnacki
e38b4436a5 Add Engine#helpers method which loads all the engine's helpers 2011-04-25 13:44:27 +02:00
David Heinemeier Hansson
723a0f82c4 Go with latest Sass directly 2011-04-25 06:34:43 -05:00
José Valim
2bc48561d5 Fix tests. 2011-04-25 11:14:39 +02:00
David Chelimsky
8d00dfca7f rename test case to better describe use case
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-04-25 09:31:48 +02:00
Prem Sichanugrist
f2fc921447 No need to check for both full and mountable.
All mountable engine are considered `full?` already.
2011-04-25 15:30:58 +08:00
Prem Sichanugrist
a1c31eca47 Add app/assets/images directory to plugin new generator 2011-04-25 15:30:58 +08:00
David Heinemeier Hansson
05ce0007db Temporarily disable uglifier until a new version depending on execjs 0.2.0 can be released (tomorrow?) 2011-04-24 20:34:22 -05:00
David Heinemeier Hansson
b306502286 Merge branch 'master' of github.com:rails/rails 2011-04-24 20:33:33 -05:00
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
Arun Agrawal
51854de52c Adding jdbcsqlite3 name in comment. 2011-04-24 01:59:20 +05:30
Arun Agrawal
d59a9507cb Looks more friendly. 2011-04-24 00:17:19 +05:30
Arun Agrawal
b335533e16 jdbcsqlite3 support added into template. #jruby 2011-04-23 19:03:24 +05:30
David Heinemeier Hansson
8d7efe6a4e Stop adding actual dummy tests (they clutter up the real ones in a new app), just show how its done 2011-04-23 13:22:30 +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
6cea2436d7 Start Adding jdbcmysql support to new rails template.
More will come for jruby app.
2011-04-23 00:41:52 +05:30
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