lib/jsonapionify/api/resource/definitions.rb in jsonapionify-0.12.0 vs lib/jsonapionify/api/resource/definitions.rb in jsonapionify-0.12.1
- old
+ new
@@ -3,9 +3,10 @@
extend JSONAPIonify::Autoload
autoload_all
def self.extended(klass)
klass.extend Contexts
+ klass.extend Hooks
constants(false).each do |const|
mod = const_get(const, false)
klass.extend mod unless klass.singleton_class < mod
end
end