multi_client 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +10 -0
- data/config/initializers/paperclip_extensions.rb +4 -0
- data/lib/multi_client/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59c04ee2319503a566144f0c9b51dfb6c367be6b
|
4
|
+
data.tar.gz: 88823dd3e94c27df8390314ff78f8665889c3147
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f942def3bbd71389636eb77a2fc899a9dd129c1dff86d7315845ff173211138791e5e8a4df7a7b89cb235d860d7d83fc814aa4776d02f7078b25d70863f30ac5
|
7
|
+
data.tar.gz: e282abdca79c954bfea67afae411cd8449f81515e873256587c207f6e602e9845748bd38ad9d654218221c7425e76d75f2789ee2b891d880b09b2f8599b4e4dd
|
data/README.rdoc
CHANGED
@@ -56,4 +56,14 @@ Correct:
|
|
56
56
|
# Including the module after the class_method call.
|
57
57
|
include MultiClient::ModelWithClient
|
58
58
|
end
|
59
|
+
|
60
|
+
== Paperclip does not find assets when using the :class interpolation
|
61
|
+
|
62
|
+
When you save an asset with paperclip and use the unscoped version of a model (i.e. PostUnscoped). The file path will include the class name with the "_unscoped "suffix.
|
63
|
+
|
64
|
+
Trying to access this attachment with the regular, scoped version of the model fails, becuase the file path does not the "_unscoped" part.
|
65
|
+
|
66
|
+
Solution: This gem adds an interpolation called :class_without_unscoped. Use this interpolation in your url and path paperclip options instead of the origional :class_name.
|
67
|
+
|
68
|
+
= License
|
59
69
|
This project rocks and uses MIT-LICENSE.
|
data/lib/multi_client/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
@@ -144,6 +144,7 @@ files:
|
|
144
144
|
- app/views/layouts/multi_client/application.html.erb
|
145
145
|
- app/views/multi_client/_client_navigation.haml
|
146
146
|
- app/views/multi_client/_current_client.html.erb
|
147
|
+
- config/initializers/paperclip_extensions.rb
|
147
148
|
- config/locales/de.yml
|
148
149
|
- config/locales/en.yml
|
149
150
|
- config/routes.rb
|