# File lib/resource_controller/helpers/singleton_customizations.rb, line 8 def self.included(subclass) subclass.class_eval do methods_to_undefine = [:param, :index, :collection, :load_collection, :collection_url, :collection_path, :hash_for_collection_url, :hash_for_collection_path] methods_to_undefine.each { |method| undef_method(method) if method_defined? method } class << self def singleton? true end end end end