Use ActionView::OutputBuffer#safe_append= from templates
avoid extra method calls for appending newlines

before:

        ');@output_buffer.append= ( content_icon row[:content] );@output_buffer.safe_concat('
');@output_buffer.safe_concat('        ');@output_buffer.append= ( spinner_img );@output_buffer.safe_concat('
');@output_buffer.safe_concat('      </td>
      <td class="content">
        ');@output_buffer.append= ( content_link row[:content] );@output_buffer.safe_concat('
');@output_buffer.safe_concat('      </td>
      <td class="message">
');

after:

        ';@output_buffer.append=( content_icon row[:content] );@output_buffer.safe_append='
        ';@output_buffer.append=( spinner_img );@output_buffer.safe_append='
      </td>
      <td class="content">
        ';@output_buffer.append=( content_link row[:content] );@output_buffer.safe_append='
      </td>
      <td class="message">
';
fix inverse_of association in block of new child

This fixes inconsistency when building children of association
which has inverse_of set properly.

When creating new association object with a block:

    parent.association.build do |child|
      child.parent.equal?(parent) # false
    end

So the block the `child.parent` did not point to the same object.
But when the object is created it points to same instance:

    child = parent.association.build
    child.parent.equal?(parent) # true
Refactor CollectionProxy#scope to avoid calling #extend.
Add block support for the  helper
apps that depend on active record should load fixtures
Revert "Warning removed unused variable task_name"

This reverts commit 106e15927f0dd8060fc37eff44b823a92fa94bd2.
Revert "Update Rake tasks to call `rails test` instead"

This reverts commit b51673fbd9563bd3ffa22e22255ca1cef80cfb6d.
ensure the schema checking is done in the dev connection
default task should also be in the test env
switch to Rails::TestTask
a test file can be provided to rake, e.g.:

  rake test path/to/test.rb
switch the testing tests to use rake
test no longer makes sense after requiring all test files
only match the default task
check pending migrations against the test db
Model generator USAGE doc improved

 * Added information about syntax for precision/scale of decimals
 * Removed incorrect information about being able to set `default`
 * Added more examples of usage
expanded rdoc for chain and reflection_names
use | to have more intent revealing code

thanks to @egilburg for suggestion
template should have generic name

since users just copy and paste and the class name is never changed