social_stream-documents 0.18.0 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,7 +48,7 @@
48
48
  <% end %>
49
49
  </div>
50
50
 
51
- <% if params[:editing].present? and params[:editing].eql?"true" and document.post_activity.edit_object_by?(current_subject) %>
51
+ <% if params[:editing] && can?(:update, document) %>
52
52
  <%= javascript_tag do %>
53
53
  $(document).ready(function(){
54
54
  SocialStream.Repository.toggleDocumentMenu('edit');
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Documents
3
- VERSION = "0.18.0".freeze
3
+ VERSION = "0.18.1".freeze
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.files = `git ls-files`.split("\n")
13
13
 
14
14
  # Gem dependencies
15
- s.add_runtime_dependency('social_stream-base', '~> 0.24.0')
15
+ s.add_runtime_dependency('social_stream-base', '~> 0.24.2')
16
16
  s.add_runtime_dependency('paperclip','~> 3.3.0')
17
17
  s.add_runtime_dependency('paperclip-ffmpeg', '~> 0.9.0')
18
18
  s.add_runtime_dependency('delayed_paperclip','>= 2.4.5.2')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream-documents
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.18.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-23 00:00:00.000000000 Z
13
+ date: 2012-12-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: social_stream-base
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 0.24.0
22
+ version: 0.24.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ~>
29
29
  - !ruby/object:Gem::Version
30
- version: 0.24.0
30
+ version: 0.24.2
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: paperclip
33
33
  requirement: !ruby/object:Gem::Requirement