rabl 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
- ## 0.7.3 (unreleased)
3
+ ## 0.7.4 (unreleased)
4
+
5
+ ## 0.7.3
6
+
7
+ * Fix issue #342 with nil case for format checking in engine `request_params`
4
8
 
5
9
  ## 0.7.2
6
10
 
@@ -219,7 +219,7 @@ module Rabl
219
219
  # Returns the request parameters if available in the scope
220
220
  # request_params => { :foo => "bar" }
221
221
  def request_params
222
- context_scope.respond_to?(:params) ? context_scope.params : {}
222
+ (context_scope.params if context_scope.respond_to?(:params)) || {}
223
223
  end
224
224
 
225
225
  # Returns data as json embraced with callback when detected
@@ -1,3 +1,3 @@
1
1
  module Rabl
2
- VERSION = "0.7.2"
2
+ VERSION = "0.7.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-10 00:00:00.000000000 Z
12
+ date: 2012-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport