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: d7836a67bebb54acbed08ef87e3cf5c983f86ab7
4
- data.tar.gz: 13c09714998553e928f783bbb7a4cfffd9d76c1e
3
+ metadata.gz: 696a66cceeba3d07f53709151b06825f034a02c5
4
+ data.tar.gz: 4d70b9302237c6138834e33f9b328bb9f9d73129
5
5
  SHA512:
6
- metadata.gz: 703645f38ef99faa01bf05461889ae85a3aa90f3062e6665f3ae50da6779eba2d664c864f172457df36ebd7bb43a3779650a53451864bd28f9feb9eb52d75170
7
- data.tar.gz: a04323b915908c705656da69db9280ae15590bade5c55aa41fd4c60253c1339ff7ad78418703a678aec22c486d490c0a7ef13fff3321f4e1190d23b8d852764a
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
@@ -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.4"
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
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-03-16 00:00:00.000000000 Z
13
+ date: 2015-12-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: lolita