activeadmin-selleo-cms 0.0.35 → 0.0.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,7 @@ module ActiveadminSelleoCms
30
30
 
31
31
  before_validation do
32
32
  self.slug = self.title.parameterize if title and slug.blank?
33
- translations.each{ |translations| set_nest(translation)}
33
+ translations.each{ |translation| set_nest(translation)}
34
34
  end
35
35
 
36
36
  before_save do
@@ -27,7 +27,7 @@
27
27
  %li.input
28
28
  %label Image
29
29
  %ol{ :style => "padding-left: 275px;" }
30
- %li= button_to_function t("active_admin.cms.file_manager.edit_image"), "fileManager('#{section_form_translated.object.image ? edit_admin_image_path(section_form_translated.object.image.id) : new_admin_image_path(image: { assetable_type: section_form_translated.class.name, assetable_id: section_form_translated.id })}')", style: "padding: 5px;"
30
+ %li= button_to_function t("active_admin.cms.file_manager.edit_image"), "fileManager('#{section_form_translated.object.image ? edit_admin_image_path(section_form_translated.object.image.id) : new_admin_image_path(image: { assetable_type: section_form_translated.object.class.name, assetable_id: section_form_translated.object.id })}')", style: "padding: 5px;"
31
31
 
32
32
  - elsif section.images?
33
33
  %li.input
@@ -39,7 +39,7 @@
39
39
  %li.input
40
40
  %label Attachment
41
41
  %ol{ :style => "padding-left: 275px;" }
42
- %li= button_to_function t("active_admin.cms.file_manager.edit_attachment"), "fileManager('#{section_form_translated.object.attachment ? edit_admin_attachment_path(section_form_translated.object.attachment.id): new_admin_attachment_path(image: { assetable_type: section_form_translated.class.name, assetable_id: section_form_translated.id }) }')", style: "padding: 5px;"
42
+ %li= button_to_function t("active_admin.cms.file_manager.edit_attachment"), "fileManager('#{section_form_translated.object.attachment ? edit_admin_attachment_path(section_form_translated.object.attachment.id): new_admin_attachment_path(image: { assetable_type: section_form_translated.object.class.name, assetable_id: section_form_translated.object.id }) }')", style: "padding: 5px;"
43
43
 
44
44
  = section_form_translated.input :locale, :as => :hidden, :label => false
45
45
 
@@ -1,3 +1,3 @@
1
1
  module ActiveadminSelleoCms
2
- VERSION = "0.0.35"
2
+ VERSION = "0.0.36"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-selleo-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.35
4
+ version: 0.0.36
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: