restful_json 4.5.0 → 4.5.1

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: fc95c0c7d75c8d006f6bd7b03cdc10fecb5b6bfe
4
- data.tar.gz: cd6dc9927dbb99b9fa44b033e5bd41c0a50654fe
3
+ metadata.gz: f1be8aa95b33fcefee60c4de7f02e37926388f14
4
+ data.tar.gz: dd605041aedbc7e11eb2214b48416291bb9ad646
5
5
  SHA512:
6
- metadata.gz: cfe9ef00e8b242f50a38356e09af036896e82f759896afc3c4bbd990b287e831a70b0d544672143126110c831bd7e7bed4f3b7f14caf6a00b01e137176495966
7
- data.tar.gz: 7b26424e5d2b3cf61f0453fee47b227fae3426577cad8336d801396436748b7ff117c26e78ca39d6970b29fc081c285ae6050ae9ee4c655c7b6a4ddaa03ca9d7
6
+ metadata.gz: 24c66cf4e68cbcc463a8912ec2da17fdd263272f95948aa494c2b624790b21423f58c14dcb7b07499844c864aa340eefcaa59826e07f4356fb4e726a36e08bef
7
+ data.tar.gz: 9bc9bbb2861f2e4b7832843bccac35b6f62f6a79463a6c8d103da904b85042faa277fc13f8d6d48025bb795e7bb6c67a6f1a279a2502ad79315d98e5bf49f580
data/README.md CHANGED
@@ -84,7 +84,7 @@ You only define what you need to provide and it can easily integrate with common
84
84
  In your Rails app's `Gemfile`:
85
85
 
86
86
  ```ruby
87
- gem 'restful_json', '~> 4.5.0'
87
+ gem 'restful_json' # and use ~> and set to latest version
88
88
  ```
89
89
 
90
90
  Then:
@@ -270,7 +270,7 @@ module RestfulJson
270
270
  # this is something we intended to rescue, so log it
271
271
  logger.error(e)
272
272
  # render error only if we haven't rendered response yet
273
- render_error(e, handling_data) unless @performed_render
273
+ render_rj_action_error(e, handling_data) unless @performed_render
274
274
  end
275
275
 
276
276
  def do_find_model_instance(first_method)
@@ -354,7 +354,7 @@ module RestfulJson
354
354
  # {"status": "not_found", "error", "Couldn't find Bar with id=23423423"}
355
355
  #
356
356
  # It handles any format in theory that is supported by respond_to and has a `to_(some format)` method.
357
- def render_error(e, handling_data)
357
+ def render_rj_action_error(e, handling_data)
358
358
  use_backtrace_cleaner = handling_data[:clean_backtrace] || true
359
359
  i18n_key = handling_data[:i18n_key]
360
360
  msg = t(i18n_key, default: e.message)
@@ -1,3 +1,3 @@
1
1
  module RestfulJson
2
- VERSION = '4.5.0'
2
+ VERSION = '4.5.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.0
4
+ version: 4.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary S. Weaver