Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A correction in Rails 4.2.0 engine document #19024

Closed
wants to merge 1,800 commits into from
Closed

A correction in Rails 4.2.0 engine document #19024

wants to merge 1,800 commits into from

Conversation

emclab
Copy link

@emclab emclab commented Feb 21, 2015

Ch4.3.2 in Get started with engine, it says:

class Blorgh::ApplicationController < ApplicationController
end

The above code causes error in rspec:
c:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:492:in `load_missing_constant': Circular dependency detected while autoloading con
stant Test4::ApplicationController (RuntimeError)

The correct format should be:

class Blorgh::ApplicationController < ::ApplicationController
end

Thanks.

kamipo and others added 30 commits February 8, 2015 20:14
Add `auto_increment?` instead of `extra == 'auto_increment'`
…llation

Respect the database default charset for `schema_migrations` table.
If timestamp column have the precision, it need to format according to
the precision of timestamp column.
…esql_timestamp_column

Fix rounding problem for PostgreSQL timestamp column
In match_head_routes, deleted the routes in which request.request_method was empty (matches all HTTP verbs) when responding to a HEAD request. This prevents catch-all routes (such as Racks) from intercepting the HEAD request.

Fixes #18698
that complements the `start`parameter to specify where to stop batch processing
This removes the following warning:

  rails/railties/lib/rails/generators/rails/plugin/plugin_generator.rb:321: warning: shadowing outer local variable - content
Explicitly ignored wildcard verbs from head_routes
This removes the following warning:

    /GitHub/rails/actionview/lib/action_view/helpers/tags/translator.rb:19: warning: private attribute?
This removes the following warning:

  railties/test/generators/named_base_test.rb:9: warning: method redefined; discarding old pluralize_table_names
  activesupport/lib/active_support/core_ext/class/attribute.rb:86: warning: previous definition of pluralize_table_names was here
  railties/test/generators/named_base_test.rb:9: warning: method redefined; discarding old pluralize_table_names=
  activesupport/lib/active_support/core_ext/class/attribute.rb:83: warning: previous definition of pluralize_table_names= was here
…rator

Remove warning from Plugin Generator
…named-base-test

Remove warning from generator named base test
The default of the global might change. It's better to reset it to
what it was than a hardcoded value.
By default the foreign key will remain set with the parent id after
destroy is fired.
…nslator

Remove warning from ActionView::Helpers::Tags::Translator
Significantly faster than `SimpleDelegator`.
Document lazy lookup behavior for controllers [ci skip]
…umentation_fix

Documentation Fix: Corrects explanation of what happens when dependent is not set
The various databases don't actually need significantly different
handling for this behavior, and they can achieve it without knowing
about the type of the object.

The old implementation was returning a string, which will cause problems
such as breaking TZ aware attributes, and making it impossible for the
adapters to supply their logic for time objects.
rafaelfranca and others added 27 commits February 20, 2015 14:47
Format the time string according to the precision of the time column
Always reset changed attributes in becomes
…-comment

Fix cache_helper comment ERB typo
…case-for-comment-consistency

Active Job Guide: Use sentence case for consistency in comments [ci skip]
Simplify find_by_statement_cache interaction
Move the `validate!` method to `ActiveModel::Validations`.
Isolate access to @associations_cache and @aggregations_cache to the Associations and Aggregations modules, respectively.
These methods are nodoc so we should not document them.
Don't use shorthand match on routes with inappropriate symbols
move cache_digests rake methods into their own namespace
The testing of error messages have been implemented wrongly a few times.
This is an attempt to fix it.

For example, some of these test should have failed with the new code.
The reason they are not failling with the new string is the fact they
were not being tested beforehand.
It's actually #validates_uniqueness_of that can generate a race condition
rather than #validates_presence_of.
@senny
Copy link
Member

senny commented Feb 21, 2015

@emclab something with the git branch of this patch went seriously wrong. I see tons uf unrelated commit. I applied the patch directly on master. See 6614793

Thank you for reporting 💛

@senny senny closed this in 6614793 Feb 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet