zadok 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a90daf3dc29645059e400f124560be3f01e1246a1bb874197914603b238c0d8
4
- data.tar.gz: acd7eef7a67118a9dec2edb197a7f2974a3178b539a9ce7273994f8ce81d2fab
3
+ metadata.gz: a8ca6fd921b6f60fa1483f0eb91b2749a31240c7f658745a58efdb4a735204d2
4
+ data.tar.gz: 14c937d6f5c459a3747f68ecdb9c39b0466ac6495931cfb621aabfd6cb6856cd
5
5
  SHA512:
6
- metadata.gz: 704636473e22551f6d75998054dddb0417ca6eb16743bcdd6a6eecd1cd4c2b0ac3c9fb9c9eaa9b3bbca1bdebdf246c3acf9c3fda6562f77e9e7d6bc41f9a348a
7
- data.tar.gz: 94ed1ced33ba5aa272151a00ca9823ce9ebf66e9c1170532792597225f32911b7c7a5d246a726ca3e03dbb21d9503c7f3ef32c50dd0afc2eb4741ffa973dfdc7
6
+ metadata.gz: ada0bf4e16c8906aefb836d45c9d360f1e921cccfbb6e403a2c2aebb860709434550e12530f64ab953625f60b3425c05f176653cf0b25849a9555fc9c645039d
7
+ data.tar.gz: 583fb73d682bae7291d493bb4a13c1ff76ec8e238b6d8345bb50c1cf8c1b90bc452a76e83979c9a4e1888a8ed40231a5c420a431db831c196801e495997e4dcf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zadok (0.4.3)
4
+ zadok (0.4.4)
5
5
  bootstrap (~> 4.0)
6
6
  bundler-audit (~> 0.6)
7
7
  cancancan (~> 2.1)
@@ -125,7 +125,7 @@ class ZadokController < ApplicationController
125
125
  end
126
126
 
127
127
  def resources
128
- raise "resources method not implemented"
128
+ @resources ||= send("@#{controller_name}")
129
129
  end
130
130
 
131
131
  def filter_and_paginate_resources!
@@ -133,7 +133,7 @@ class ZadokController < ApplicationController
133
133
  end
134
134
 
135
135
  def resource
136
- raise "resource method not implemented"
136
+ @resource ||= send("@#{controller_name.singularize}")
137
137
  end
138
138
 
139
139
  def show_attributes
data/lib/zadok/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zadok
4
- VERSION = "0.4.3"
4
+ VERSION = "0.4.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zadok
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leon Hooijer