1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test/commands
Benoit Tigeot c6d928f3ca Add --expanded option to "rails routes"
When using rails routes with small terminal or complicated routes it can be
very difficult to understand where is the element listed in header. psql
had the same issue, that's why they created "expanded mode" you can
switch using `\x` or by starting psql with
```
-x
--expanded

    Turn on the expanded table formatting mode. This is equivalent to the \x command.
```
The output is similar to one implemented here for rails routes:

db_user-# \du
List of roles
-[ RECORD 1 ]----------------------------------------------
Role name  | super
Attributes | Superuser, Create role, Create DB
Member of  | {}
-[ RECORD 2 ]----------------------------------------------
Role name  | role
Attributes | Superuser, Create role, Create DB, Replication
Member of  | {}
2018-02-28 22:32:34 +01:00
..
console_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
credentials_test.rb Do not add master key when RAILS_MASTER_KEY env specified (#31922) 2018-02-08 19:49:50 +09:00
dbconsole_test.rb Fix can't modify frozen String error in DBConsole 2017-08-29 16:50:51 +09:00
encrypted_test.rb Do not add master key when RAILS_MASTER_KEY env specified (#31922) 2018-02-08 19:49:50 +09:00
routes_test.rb Add --expanded option to "rails routes" 2018-02-28 22:32:34 +01:00
secrets_test.rb Deprecate encrypted secrets in favor of credentials. 2017-11-12 17:50:09 +01:00
server_test.rb Fix test name for daemon option test 2017-10-14 07:34:33 +09:00