aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Allow to run migrations with given scope, with SCOPE=<scope>Piotr Sarnacki2011-12-093-1/+39
| | | | | | | | | | | Scope in migrations can be defined by adding suffix in filename, like: 01_a_migration.blog.rb. Such migration have blog scope. Scope is automatically added while copying migrations from engine, so if you want to revert all of the migrations from given engine, you can just run db:migrate with SCOPE, like: rake db:migrate SCOPE=blog
* Allow to filter migrations by passing a blockPiotr Sarnacki2011-12-092-9/+31
| | | | | | | | | | Example: ActiveRecord::Migrator.migrate(path) do |migration| migration.name =~ /User/ end The above example will migrate only migrations with User in the name
* Fix extend -> include.José Valim2011-12-092-3/+1
|
* Use `table_exists?` from the schema cache.Aaron Patterson2011-12-094-8/+7
|
* don't need a begin / end.Aaron Patterson2011-12-091-6/+4
|
* squelch table exists? queries.Aaron Patterson2011-12-091-1/+1
|
* only load converter if the encodings are differentAaron Patterson2011-12-091-1/+1
|
* Make ActiveSupport::Benchmarkable a default module for ↵David Heinemeier Hansson2011-12-092-0/+4
| | | | ActionController::Base, so the #benchmark method is once again available in the controller context like it used to be *DHH*
* Compare migrations for copying only by name and scopePiotr Sarnacki2011-12-092-48/+7
|
* Add suffix for migrations copied from enginesPiotr Sarnacki2011-12-093-34/+34
|
* String#to_a is not available in 1.9Piotr Sarnacki2011-12-092-2/+2
|
* Deprecate implicit layout lookup in favor of inheriting the _layout config.José Valim2011-12-093-34/+101
|
* Simplify path traversal logicJosé Valim2011-12-091-7/+7
|
* Run also migrations in subdirectories.Piotr Sarnacki2011-12-095-2/+45
| | | | | With this commit, ActiveRecord will also look for migrations in db/migrate subdirectories.
* Fix railties tests, identical migrations are not considered when copyingPiotr Sarnacki2011-12-091-0/+2
|
* Ignore origin comment when checking for duplicates on Migration.copyPiotr Sarnacki2011-12-093-5/+58
| | | | | | | 49ebe51 fixed copying migrations, but existing migrations would still trigger warnings. The proper way to compare migrations is to ignore origin lines - if migration is identical it means that we can silently skip it, regardless where it comes from.
* Fix copying migrations from enginesPiotr Sarnacki2011-12-092-3/+24
| | | | | | | | | | There was a bug in ActiveRecord::Migration.copy method, which prevented adding special comment about the origin of migration. Because of that, the check if migration is identical or if it's not and should be skipped was always saying that migration is skipped, which was causing additional useless warnings about skipped migrations.
* load the encoding converter to work around [ruby-core:41556] when switching ↵Aaron Patterson2011-12-083-115/+1
| | | | encodings
* Exceptions should read from the spec configuAaron Patterson2011-12-081-1/+1
|
* Fix another regression related to the layout optimization.José Valim2011-12-082-1/+27
|
* Move symbolize keys to the inner options as we can assume url_options will ↵José Valim2011-12-082-2/+2
| | | | be properly symbolized.
* Fix #3890. (Calling proxy_association in scope chain.)Jon Leighton2011-12-083-3/+19
|
* Fix a regression and also fix broken test.José Valim2011-12-082-9/+14
|
* fix nodocsVijay Dev2011-12-095-11/+11
|
* add haml and slim to the list of extensions supported by rake notesVijay Dev2011-12-091-1/+1
|
* fix commentsVijay Dev2011-12-091-4/+2
|
* minor text changeVijay Dev2011-12-091-1/+1
|
* Remove NilClass whiners feature.José Valim2011-12-083-85/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Removing this feature causes boost in performance when using Ruby 1.9. Ruby 1.9 started to do implicit conversions using `to_ary` and `to_str` in some STDLIB methods (like Array#join). To do such implicit conversions, Ruby 1.9 always dispatches the method and rescues the NoMethodError exception in case one is raised. Therefore, since the whiners feature defined NilClass#method_missing, such implicit conversions for nil became much, much slower. In fact, just defining NilClass#method_missing (even without the whiners feature) already causes a massive slow down. Here is a snippet that shows such slow down: require "benchmark" Benchmark.realtime { 1_000.times { [nil,nil,nil].join } } class NilClass def method_missing(*args) raise NoMethodError end end Benchmark.realtime { 1_000.times { [nil,nil,nil].join } }
* Improve cache on route_key lookup.José Valim2011-12-083-6/+37
|
* fixing eval'd line numbers.Aaron Patterson2011-12-081-2/+2
|
* Regexp.union seems to have different results in 1.8Aaron Patterson2011-12-081-3/+3
|
* Revert accidental change from cattr_accessor to class_attribute.José Valim2011-12-081-1/+1
|
* Merge pull request #3909 from laserlemon/patch-1Xavier Noria2011-12-082-4/+7
|\ | | | | Add dependency status (a la build status) to the README
| * Add dependency status (a la build status) to the READMESteve Richert2011-12-082-4/+7
|/
* Merge pull request #3908 from kennyj/should_use_default_charsetJosé Valim2011-12-081-2/+3
|\ | | | | Fix a failure in railties on ruby 1.8.x
| * Fix testcase an error on ruby 1.8.x.kennyj2011-12-091-2/+3
| | | | | | | | | | | | In Ruby 1.8.x, config.encoding sets $KCODE. Therefore, the possible values are UTF8, SJIS, or EUC. And, if we set SJIS, we'll has the error. Because some rails sources are written in utf-8 encoding.
* | Merge pull request #3906 from kennyj/fix_warnings_for_params_wrapper_testJosé Valim2011-12-081-1/+1
|\ \ | | | | | | Fix warning for params_wrapper_test.rb
| * | Fix warning for params_wrapper_test.kennyj2011-12-081-1/+1
| | |
* | | Just use the proc if there is a chance of layout lookup.José Valim2011-12-081-5/+6
| | |
* | | Optimize layout lookup to avoid double calls.José Valim2011-12-084-33/+41
| | |
* | | Some small optimizations and improvements to benchmark code.José Valim2011-12-084-17/+15
| | |
* | | Add performance scripts from wycats/rails-simple-benches to actionpack.José Valim2011-12-0810-1/+217
| | |
* | | Remove rb-fsevent from Gemfile.José Valim2011-12-081-3/+0
|/ /
* | updates the host and port of publish_docs, and changes the release ↵Xavier Noria2011-12-082-2/+2
| | | | | | | | instructions to use the task rather than curl (thanks to Vijay Dev for spotting this one)
* | use our own fork of sdoc while Vijay's fix is not applied to voloko/sdocXavier Noria2011-12-081-1/+5
| |
* | releasing instructions: updates the URLs that triggers stable docs ↵Xavier Noria2011-12-081-1/+1
| | | | | | | | generation and publishing
* | Merge pull request #3900 from jfturcot/accessible_wrap_paramsJosé Valim2011-12-083-2/+41
|\ \ | | | | | | ParamsWrapper only wrap the accessible attributes when they were set
| * | Add information to the changelog about the changes to ↵Jean-Francois Turcot2011-12-081-0/+5
| | | | | | | | | | | | ActionController::ParamsWrapper
| * | ParamsWrapper only wrap the accessible attributes when they were setJean-Francois Turcot2011-12-072-2/+36
| | |
* | | Fix broken test_exists_query_logging from the table_exists? changeJon Leighton2011-12-081-0/+1
| | |