mix-rails-vouchers 0.16.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,12 +2,6 @@
2
2
 
3
3
  class Vouchers::PhotoUploader < CarrierWave::Uploader::Base
4
4
 
5
- grid_fs_access_url = "public/uploads"
6
-
7
- def store_dir
8
- 'public/uploads'
9
- end
10
-
11
5
  def extension_white_list
12
6
  %w(jpg jpeg gif png)
13
7
  end
@@ -30,6 +24,10 @@ class Vouchers::PhotoUploader < CarrierWave::Uploader::Base
30
24
  "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
31
25
  end
32
26
 
27
+ def cache_dir
28
+ "system/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
29
+ end
30
+
33
31
  # Provide a default URL as a default if there hasn't been a file uploaded:
34
32
  # def default_url
35
33
  # # For Rails 3.1+ asset pipeline compatibility:
@@ -1,7 +1,7 @@
1
1
  module MixRailsVouchers
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 16
4
+ MINOR = 22
5
5
  TINY = 0
6
6
  PRE = nil
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mix-rails-vouchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.22.0
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: 2013-01-27 00:00:00.000000000 Z
13
+ date: 2013-02-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mail_form
@@ -68,36 +68,35 @@ executables: []
68
68
  extensions: []
69
69
  extra_rdoc_files: []
70
70
  files:
71
+ - app/uploaders/vouchers/photo_uploader.rb
72
+ - app/controllers/admix/vouchers_controller.rb
73
+ - app/controllers/vouchers_controller.rb
71
74
  - app/mailers/voucher_mailer.rb
72
- - app/views/vouchers/_voucher_show.html.haml
73
- - app/views/vouchers/confirmation_error.html.haml
74
- - app/views/vouchers/index.html.haml
75
- - app/views/vouchers/print.html.haml
75
+ - app/models/admix/vouchers_datagrid.rb
76
+ - app/models/email_validator.rb
77
+ - app/models/voucher_user.rb
78
+ - app/models/vouchers/contact.rb
79
+ - app/models/voucher.rb
80
+ - app/views/admix/vouchers/_show.html.haml
81
+ - app/views/admix/vouchers/_table_actions.html.haml
82
+ - app/views/admix/vouchers/print.html.haml
83
+ - app/views/admix/vouchers/users.html.haml
84
+ - app/views/admix/vouchers/_form_fields.html.haml
76
85
  - app/views/vouchers/confirmation.html.haml
77
- - app/views/vouchers/email_sent.html.haml
78
86
  - app/views/vouchers/_voucher.html.haml
87
+ - app/views/vouchers/_voucher_show.html.haml
88
+ - app/views/vouchers/email_sent.html.haml
89
+ - app/views/vouchers/print.html.haml
90
+ - app/views/vouchers/index.html.haml
91
+ - app/views/vouchers/confirmation_error.html.haml
79
92
  - app/views/vouchers/show.html.haml
80
- - app/views/admix/vouchers/_form_fields.html.haml
81
- - app/views/admix/vouchers/users.html.haml
82
- - app/views/admix/vouchers/_table_actions.html.haml
83
- - app/views/admix/vouchers/print.html.haml
84
- - app/views/admix/vouchers/_show.html.haml
85
93
  - app/views/voucher_mailer/send_confirmation_link.text.erb
86
- - app/controllers/vouchers_controller.rb
87
- - app/controllers/admix/vouchers_controller.rb
88
- - app/models/voucher.rb
89
- - app/models/vouchers/contact.rb
90
- - app/models/admix/vouchers_datagrid.rb
91
- - app/models/email_validator.rb
92
- - app/models/voucher_user.rb
93
- - app/uploaders/vouchers/photo_uploader.rb
94
- - config/initializers/carrier_wave.rb
95
- - config/routes.rb
96
94
  - config/locales/vouchers.pt-BR.yml
97
- - lib/tasks/mix-vouchers_tasks.rake
98
- - lib/mix-rails-vouchers.rb
95
+ - config/routes.rb
99
96
  - lib/mix-rails-vouchers/version.rb
100
97
  - lib/mix-rails-vouchers/engine.rb
98
+ - lib/tasks/mix-vouchers_tasks.rake
99
+ - lib/mix-rails-vouchers.rb
101
100
  - MIT-LICENSE
102
101
  - Rakefile
103
102
  - README.rdoc
@@ -115,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
114
  version: '0'
116
115
  segments:
117
116
  - 0
118
- hash: -1058978439327101945
117
+ hash: 1388943337525574068
119
118
  required_rubygems_version: !ruby/object:Gem::Requirement
120
119
  none: false
121
120
  requirements:
@@ -124,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
123
  version: '0'
125
124
  segments:
126
125
  - 0
127
- hash: -1058978439327101945
126
+ hash: 1388943337525574068
128
127
  requirements: []
129
128
  rubyforge_project:
130
129
  rubygems_version: 1.8.24
File without changes