invisible_controller 0.1.6 → 0.1.7

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: a2910879d0d4992c47eef99887bd3847dfb76c04
4
- data.tar.gz: 3eccc6c843cd3bc5b99497dbb0b974572505455d
3
+ metadata.gz: b22e12337ccd36b40dede1c2d6f0b8dd159251c0
4
+ data.tar.gz: fcc24a06d01a79dd49d5ec0ace70281754a7793b
5
5
  SHA512:
6
- metadata.gz: 718f466a43ea0e245605bb0e47634ca251d0cd512bf31ebc5e5f67cbe4ee95d79a2745bfeda8ae8ea4389694eee9fabc20c5574901cf1973312bf1b634e991c8
7
- data.tar.gz: e796aeabf86461513d341f6c23aea9ac40905052ce5a50375b8dadb46240a4037e4857ea3a1a6ebe1618fe4f5840365a5b5b4d5e60c093952d7503532c982efd
6
+ metadata.gz: 1182788b158a06b6074b24cf0a607b4f6be31767f5f2d163c4158b24441066059d12d2bb39f6c2cd92e3f213fb4aca36d3fda02336d83185e6faed9046af8155
7
+ data.tar.gz: eaa494dff6764c00ab0f11041ce21d5455542cdcd24881c75477688d87d93eac9a5ce21253caf359221d45759b4b4fbaf6841e311bfee8b3d9d1dada3713f2ee
@@ -50,6 +50,10 @@ module InvisibleController
50
50
  render json: resource unless params[:suppress]
51
51
  }
52
52
  format.xml {render xml: resource}
53
+ format.pdf {render pdf: resource, layout: false}
54
+ (mimes_for_respond_to.keys - [:html, :xml, :json, :pdf]).each do |mime|
55
+ format.send(mime) {render mime => resource}
56
+ end
53
57
  end
54
58
  end
55
59
  def load_resource()
@@ -1,3 +1,3 @@
1
1
  module InvisibleController
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invisible_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-22 00:00:00.000000000 Z
11
+ date: 2016-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails