You need to point the NextHook code to Class , and then call the following so that it applies to class methods.
Class.send(:include, FollowingHook) class User class << self following :get do |reciever, args|
Edit:
Here is my complete working solution that followed this suggestion:
# Contains methods to hook method calls module FollowingHook module ClassMethods private
user1454117
source share