Skip to content

Commit ad6da1c

Browse files
committed
2 parents 0d51c35 + 14cc8c3 commit ad6da1c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

jsonapi-utils.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
1414
spec.homepage = 'https://github.com/b2beauty/jsonapi-utils'
1515
spec.license = 'MIT'
1616

17-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17+
spec.files = Dir.glob("{bin,lib}/**/*") + %w(LICENSE.txt README.md CODE_OF_CONDUCT.md)
1818
spec.bindir = 'exe'
1919
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2020
spec.require_paths = ['lib']

lib/jsonapi/utils.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
module JSONAPI
66
module Utils
77
def self.included(base)
8-
base.helper_method :jsonapi_serialize
8+
if base.respond_to?(:helper_method)
9+
base.helper_method :jsonapi_serialize
10+
end
911
end
1012

1113
def jsonapi_render(json:, status: nil, options: {})

0 commit comments

Comments
 (0)