From a9913a966d436d189ed4e0895cd358c6fb23867d Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sat, 18 Jan 2014 14:19:23 +0100 Subject: [PATCH] Rename "font_size" playback option to "size" --- app/helpers/asciicasts_helper.rb | 2 +- app/models/playback_options.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/asciicasts_helper.rb b/app/helpers/asciicasts_helper.rb index 598997d..7b494e2 100644 --- a/app/helpers/asciicasts_helper.rb +++ b/app/helpers/asciicasts_helper.rb @@ -10,7 +10,7 @@ module AsciicastsHelper renderer_class: options.renderer_class, auto_play: options.autoplay, hud: !options.hide_hud, - size: options.font_size, + size: options.size, } end diff --git a/app/models/playback_options.rb b/app/models/playback_options.rb index 6dcb900..668f82e 100644 --- a/app/models/playback_options.rb +++ b/app/models/playback_options.rb @@ -3,7 +3,7 @@ class PlaybackOptions include Virtus.model attribute :speed, Float, default: 1.0 - attribute :font_size, String, default: 'small' + attribute :size, String, default: 'small' attribute :autoplay, Boolean, default: false attribute :max_width, Integer attribute :hide_hud, Boolean, default: false