aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/migration_generator_test.rb
diff options
context:
space:
mode:
authorEric Anderson <eric@bloodhub.com>2018-08-09 12:00:23 -0400
committerEric Anderson <eric@bloodhub.com>2018-08-09 12:00:23 -0400
commit34326af1d44be1c17fb8208578b25d7162a118fe (patch)
treead51922794e5938fc35bf2bc2d9006116da511a6 /railties/test/generators/migration_generator_test.rb
parent3000c1490565b3a21376d6444cb6fe24dfe4e383 (diff)
downloadrails-34326af1d44be1c17fb8208578b25d7162a118fe.tar.gz
rails-34326af1d44be1c17fb8208578b25d7162a118fe.tar.bz2
rails-34326af1d44be1c17fb8208578b25d7162a118fe.zip
Conditionally use `helper_method` in Flash concern
I was attempting to use the `flash` functionality in a `Metal` controller. When including the `flash` concern I received the following error: NoMethodError: undefined method `helper_method'.... Either: - `AbstractController::Helpers` should be a dependency of `ActionController::Flash` - `ActionController::Flash` should not require the existence of `AbstractController::Helpers`. Since my use case (set a flash and redirect) has no need for the helper method and that is a common use case, making the dependency conditional seemed the better option. NOTE: This is similar to issue #21067 only the error is within Rails itself while that issue had the error within Devise.
Diffstat (limited to 'railties/test/generators/migration_generator_test.rb')
0 files changed, 0 insertions, 0 deletions