Sha256: 1b2c1c35ad8b4d411aa482aec3588d931a0b126bf4277c768da5b33cbb357d83

Contents?: true

Size: 267 Bytes

Versions: 44

Compression:

Stored size: 267 Bytes

Contents

module InheritedResources
  # An object from BlankSlate simply discards all messages sent to it.
  class BlankSlate
    instance_methods.each do |m|
      undef_method m unless m =~ /^(__|object_id)/
    end

    def method_missing(*args)
      nil
    end
  end
end

Version data entries

44 entries across 44 versions & 4 rubygems

Version Path
inherited_resources-1.14.0 lib/inherited_resources/blank_slate.rb
inherited_resources-1.13.1 lib/inherited_resources/blank_slate.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/inherited_resources-1.13.0/lib/inherited_resources/blank_slate.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/inherited_resources-1.13.0/lib/inherited_resources/blank_slate.rb
inherited_resources-1.13.0 lib/inherited_resources/blank_slate.rb
inherited_resources-1.12.0 lib/inherited_resources/blank_slate.rb
inherited_resources-1.11.0 lib/inherited_resources/blank_slate.rb
inherited_resources-1.10.0 lib/inherited_resources/blank_slate.rb
inherited_resources-1.10.0.rc1 lib/inherited_resources/blank_slate.rb
inherited_resources-1.9.0 lib/inherited_resources/blank_slate.rb
inherited_resources-1.8.0 lib/inherited_resources/blank_slate.rb
inherited_resources-1.7.2 lib/inherited_resources/blank_slate.rb
inherited_resources-1.7.1 lib/inherited_resources/blank_slate.rb
inherited_resources-1.7.0 lib/inherited_resources/blank_slate.rb
inherited_resources-1.6.0 lib/inherited_resources/blank_slate.rb
inherited_resources-1.5.1 lib/inherited_resources/blank_slate.rb
inherited_resources-1.5.0 lib/inherited_resources/blank_slate.rb
inherited_resources-1.4.1 lib/inherited_resources/blank_slate.rb
inherited_resources-1.4.0 lib/inherited_resources/blank_slate.rb
inherited_resources-1.3.1 lib/inherited_resources/blank_slate.rb