Sha256: 97bb4746e412e279b035e655fd074c16c27f9a891a55c87f0b337aedc602fed9

Contents?: true

Size: 179 Bytes

Versions: 5

Compression:

Stored size: 179 Bytes

Contents

class Object

  # Probably there's a better way to verify if a model responds to an STI
  # pattern.
  def self.is_sti?
    superclass.superclass == ActiveRecord::Base
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typus-3.0.8 lib/support/object.rb
typus-3.0.7 lib/support/object.rb
typus-3.0.6 lib/support/object.rb
typus-3.0.5 lib/support/object.rb
typus-3.0.4 lib/support/object.rb