1
0
Π·Π΅Ρ€ΠΊΠ°Π»ΠΎ ΠΈΠ· https://github.com/rs-pro/activeadmin-quill_editor.git synced 2026-09-03 10:16:18 +03:00

πŸŽ‰ Support ActiveAdmin 2.x and code style improvements

- Add support ActiveAdmin for 2.x
- Add rubocop config
- Add frozen_string_literal to ruby files
- Apply changes to respect rubocop alerts
Π­Ρ‚ΠΎΡ‚ ΠΊΠΎΠΌΠΌΠΈΡ‚ содСрТится Π²:
Mattia Roccoberton
2019-06-15 19:50:57 +02:00
Ρ€ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒ ee7749c075
ΠšΠΎΠΌΠΌΠΈΡ‚ 9eb6280e53
11 ΠΈΠ·ΠΌΠ΅Π½Ρ‘Π½Π½Ρ‹Ρ… Ρ„Π°ΠΉΠ»ΠΎΠ²: 106 Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΉ ΠΈ 27 ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠΉ

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@@ -1,15 +1,17 @@
# frozen_string_literal: true
module Formtastic
module Inputs
class QuillEditorInput < Formtastic::Inputs::TextInput
def to_html
input_wrapping do
label_html <<
template.content_tag( :div, input_html_options.merge( class: 'quill-editor' ) ) do
builder.hidden_field( input_name ) <<
template.content_tag( :div, class: 'quill-editor-content' ) do
object.send( method ).try :html_safe
template.content_tag(:div, input_html_options.merge(class: 'quill-editor')) do
builder.hidden_field(input_name) <<
template.content_tag(:div, class: 'quill-editor-content') do
object.send(method).try :html_safe
end
end
end
end
end
end