diff --git a/app/models/katalyst/content/aside.rb b/app/models/katalyst/content/aside.rb index 95c787c..598c0a6 100644 --- a/app/models/katalyst/content/aside.rb +++ b/app/models/katalyst/content/aside.rb @@ -3,6 +3,13 @@ module Katalyst module Content class Aside < Layout + style_attributes do + attribute :reverse, :boolean, default: false + end + + def self.permitted_params + super + %i[reverse] + end end end end diff --git a/app/views/katalyst/content/asides/_aside.html+form.erb b/app/views/katalyst/content/asides/_aside.html+form.erb index 45b9e76..fef76e0 100644 --- a/app/views/katalyst/content/asides/_aside.html+form.erb +++ b/app/views/katalyst/content/asides/_aside.html+form.erb @@ -22,6 +22,11 @@ <%= form.check_box :visible %> +