aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides.rb
diff options
context:
space:
mode:
authorAlberto Almagro <albertoalmagro@gmail.com>2018-11-22 20:48:25 +0100
committerAlberto Almagro <albertoalmagro@gmail.com>2018-11-22 22:39:13 +0100
commit5020c2e3022ad9f07c29679f489cdb836425c552 (patch)
tree2162eebeaf3c55b6df97af843d0ec1f980f66759 /guides/rails_guides.rb
parent1b68ead8f8cb0d7a1771ab82ab20bd79857b40ee (diff)
downloadrails-5020c2e3022ad9f07c29679f489cdb836425c552.tar.gz
rails-5020c2e3022ad9f07c29679f489cdb836425c552.tar.bz2
rails-5020c2e3022ad9f07c29679f489cdb836425c552.zip
Use direction instead of rtl flag.
Improve readability by using `direction` as CSS does. More info: https://developer.mozilla.org/en-US/docs/Web/CSS/direction Continues: #34486 [Alberto Almagro + Ufuk Kayserilioglu]
Diffstat (limited to 'guides/rails_guides.rb')
-rw-r--r--guides/rails_guides.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/guides/rails_guides.rb b/guides/rails_guides.rb
index b24c0205d5..28a7c94ca9 100644
--- a/guides/rails_guides.rb
+++ b/guides/rails_guides.rb
@@ -20,11 +20,11 @@ version = env_value["RAILS_VERSION"]
edge = `git rev-parse HEAD`.strip unless version
RailsGuides::Generator.new(
- edge: edge,
- version: version,
- all: env_flag["ALL"],
- only: env_value["ONLY"],
- kindle: env_flag["KINDLE"],
- language: env_value["GUIDES_LANGUAGE"],
- rtl: env_value["RTL"]
+ edge: edge,
+ version: version,
+ all: env_flag["ALL"],
+ only: env_value["ONLY"],
+ kindle: env_flag["KINDLE"],
+ language: env_value["GUIDES_LANGUAGE"],
+ direction: env_value["DIRECTION"].to_sym
).generate