DRY up bootstrapSwitches with default values

This commit is contained in:
James Mason 2018-06-18 17:44:06 -07:00
parent a7f904e99a
commit 595e7c36af
No known key found for this signature in database
GPG key ID: 1B3951886C449023
12 changed files with 33 additions and 66 deletions

View file

@ -168,14 +168,7 @@ module EventsHelper
event,
event: { attribute => nil }
),
method: :patch,
class: 'switch-checkbox',
data: {
size: 'small',
off_color: 'warning',
on_text: 'Yes',
off_text: 'No'
}
class: 'switch-checkbox'
)
end