inplace_editing 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 482dcb3130b440b5958e36943bf8e27aa875d86d
4
- data.tar.gz: 641fe4f5a36db8d6c2f11324c4433b2592f12d4b
3
+ metadata.gz: 0bde74202d05805261eb310a90d1d13b7ab1c21e
4
+ data.tar.gz: b2e812e0a7b59470c68615d58c9b38e0ff5cecd2
5
5
  SHA512:
6
- metadata.gz: dc19ed882521e9151ea93d777b97abc5e61563076195a8600eb7c6e35a226f777b01d2b97810eed35bcf2cdc5568c09dd776fa4f656d16054e925e334912d69e
7
- data.tar.gz: c302d306db44e91a80fff9ac88a53ff5b6100f81b41a4a67baea46bb64c062beaf8140227d3990d47a000ef86a98e705a945a8232dd365b29cc119a83a041470
6
+ metadata.gz: 6280ec036ae76779443ec8e21fb056831ec094084c35275fa0a8b72d959b6d26b578c1f74e649fb8fff55b577f4bed8cf3e9bcbe968bae923d8a4b457002d121
7
+ data.tar.gz: 5c6141cc11a6c30de283da28112248e5fa686fc47a9767c58c3ee77be738edcac4986cc02e5a49b041c2ddf0de35a405586a3ffbd32dec3dd422c7532f6dad2a
@@ -15,8 +15,10 @@ module InplaceEditingHelper
15
15
  end
16
16
  end
17
17
 
18
- def text_editor(localized_object, property, place_holder = nil)
19
- render partial: 'inplace_editing/text', :locals => editor_locals(localized_object, property, place_holder)
18
+ def text_editor(localized_object, property, place_holder = nil, options = nil)
19
+ locals = editor_locals(localized_object, property, place_holder)
20
+ locals[:options] = options
21
+ render partial: 'inplace_editing/text', :locals => locals
20
22
  end
21
23
 
22
24
  def string_editor(localized_object, property, place_holder = nil)
@@ -1 +1 @@
1
- = best_in_place localized_object, property, as: :textarea, class: 'best_in_place_textarea inplace_editor inplace_editor_text', :place_holder => local_assigns[:place_holder] ? local_assigns[:place_holder] : "[texto aqui]", sanitize: false, :ok_button => 'Salvar', :cancel_button => 'Cancelar', :display_with => lambda { |v| markdown(v, '[texto aqui]') }
1
+ = best_in_place localized_object, property, as: :textarea, class: 'best_in_place_textarea inplace_editor inplace_editor_text', :place_holder => local_assigns[:place_holder] ? local_assigns[:place_holder] : "[texto aqui]", sanitize: false, :ok_button => 'Salvar', :cancel_button => 'Cancelar', :display_with => lambda { |v| markdown(v, '[texto aqui]', local_assigns[:options]) }
@@ -1,3 +1,3 @@
1
1
  module InplaceEditing
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inplace_editing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrique Rangel