Module: ResourceController::Helpers::SingletonCustomizations
- Defined in:
- lib/resource_controller/helpers/singleton_customizations.rb
Class Method Summary collapse
Class Method Details
.included(subclass) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# 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 |