lolita-file-upload 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 696a66cceeba3d07f53709151b06825f034a02c5
|
4
|
+
data.tar.gz: 4d70b9302237c6138834e33f9b328bb9f9d73129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21110f7452af5b259909f3da8409991a02f282024254e0722d58f03599c4d7157febf11e7e012ead48da24eca57a3e63291ff9581867c49e2560b6d5b34ad4b3
|
7
|
+
data.tar.gz: f781e4873cffdd5f3580d1937283703089c665f8a1445c29b8e7d75c1c2340536b156c64c9f33a97661c7be4d5bf869a4571985cf83cd9aadb8d61d49beb5af8
|
@@ -11,8 +11,8 @@
|
|
11
11
|
<%= file.send(tab.uploader).url %>
|
12
12
|
<% end %>
|
13
13
|
<div class="links">
|
14
|
-
<%= link_to t("lolita.tabs.images.edit"),send(:"edit_lolita_#{tab.dbi.klass.model_name.singular}_upload_path", "#{tab.dbi.klass.model_name.singular}_id" => (resource.nil? || resource.new_record?) ? 0 : resource.id, :association => tab.association.name, :id=>file.id),:remote=>true, :class => "edit_link" %>
|
15
|
-
<%= link_to t("lolita.tabs.images.delete"),send(:"lolita_#{tab.dbi.klass.model_name.singular}_upload_path", "#{tab.dbi.klass.model_name.singular}_id" => (resource.nil? || resource.new_record?) ? 0 : resource.id, :association => tab.association.name, :id=>file.id),:method=>:delete,:remote=>true,:confirm=>"Are you sure?", :class => "delete_link" %>
|
14
|
+
<%= link_to t("lolita.tabs.images.edit"),send(:"edit_lolita_#{tab.dbi.klass.model_name.singular}_upload_path", "#{tab.dbi.klass.model_name.singular}_id".to_sym => (resource.nil? || resource.new_record?) ? 0 : resource.id, :association => tab.association.name, :id=>file.id),:remote=>true, :class => "edit_link" %>
|
15
|
+
<%= link_to t("lolita.tabs.images.delete"),send(:"lolita_#{tab.dbi.klass.model_name.singular}_upload_path", "#{tab.dbi.klass.model_name.singular}_id".to_sym => (resource.nil? || resource.new_record?) ? 0 : resource.id, :association => tab.association.name, :id=>file.id),:method=>:delete,:remote=>true,:confirm=>"Are you sure?", :class => "delete_link" %>
|
16
16
|
</div>
|
17
17
|
</div>
|
18
18
|
<p><%= File.basename(file.send(tab.uploader).url) %></p>
|
@@ -47,7 +47,7 @@ module Lolita
|
|
47
47
|
|
48
48
|
def association name=nil
|
49
49
|
if name
|
50
|
-
@association = self.dbi.associations[name]
|
50
|
+
@association = self.dbi.associations[name.to_s]
|
51
51
|
@association_type = @association.macro
|
52
52
|
@uploader = @association.klass.uploaders.keys.first
|
53
53
|
end
|
@@ -117,4 +117,4 @@ module Lolita
|
|
117
117
|
end
|
118
118
|
end
|
119
119
|
end
|
120
|
-
end
|
120
|
+
end
|
data/lolita-file-upload.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "lolita-file-upload"
|
6
|
-
s.version = "1.0.
|
6
|
+
s.version = "1.0.5"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["ITHouse (Latvia)", "Arturs Meisters", "Gatis Tomsons"]
|
9
9
|
s.description = "File upload gem for Lolita with with fulll integration - models, controller, views"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolita-file-upload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ITHouse (Latvia)
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-12-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: lolita
|