mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove deprecated capify!
This commit is contained in:
parent
1a6a3e06ed
commit
9d39f81d51
3 changed files with 4 additions and 18 deletions
|
@ -1,3 +1,7 @@
|
|||
* Remove deprecated `capify!`.
|
||||
|
||||
*Rafael Mendonça França*
|
||||
|
||||
* Remove deprecated `config.secret_token`.
|
||||
|
||||
*Rafael Mendonça França*
|
||||
|
|
|
@ -248,15 +248,6 @@ module Rails
|
|||
execute_command :rails, command, options
|
||||
end
|
||||
|
||||
# Just run the capify command in root
|
||||
#
|
||||
# capify!
|
||||
def capify!
|
||||
ActiveSupport::Deprecation.warn("`capify!` is deprecated and will be removed in the next version of Rails.")
|
||||
log :capify, ""
|
||||
in_root { run("#{extify(:capify)} .", verbose: false) }
|
||||
end
|
||||
|
||||
# Make an entry in Rails routing file <tt>config/routes.rb</tt>
|
||||
#
|
||||
# route "root 'welcome#index'"
|
||||
|
|
|
@ -412,15 +412,6 @@ class ActionsTest < Rails::Generators::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_capify_should_run_the_capify_command
|
||||
content = capture(:stderr) do
|
||||
assert_called_with(generator, :run, ["capify .", verbose: false]) do
|
||||
action :capify!
|
||||
end
|
||||
end
|
||||
assert_match(/DEPRECATION WARNING: `capify!` is deprecated/, content)
|
||||
end
|
||||
|
||||
def test_route_should_add_data_to_the_routes_block_in_config_routes
|
||||
run_generator
|
||||
route_command = "route '/login', controller: 'sessions', action: 'new'"
|
||||
|
|
Loading…
Reference in a new issue