Sha256: 46c7360ccd422ac520b0454b8bdfe34493a146157a8cbfbf2ef41cb41aaa58e9

Contents?: true

Size: 214 Bytes

Versions: 15

Compression:

Stored size: 214 Bytes

Contents

class Object

  # OPTIMIZE: Probably there's a better way to verify if a model responds
  # to an STI pattern.
  def self.is_sti?
    (name != base_class.name) && base_class.descends_from_active_record?
  end

end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
brainsome_typus-4.0.0.beta13 lib/support/object.rb
brainsome_typus-4.0.0.beta12 lib/support/object.rb
brainsome_typus-4.0.0.beta11 lib/support/object.rb
brainsome_typus-4.0.0.beta10 lib/support/object.rb
brainsome_typus-4.0.0.beta9 lib/support/object.rb
brainsome_typus-4.0.0.beta8 lib/support/object.rb
brainsome_typus-4.0.0.beta7 lib/support/object.rb
brainsome_typus-4.0.0.beta6 lib/support/object.rb
brainsome_typus-4.0.0.beta5 lib/support/object.rb
brainsome_typus-4.0.0.beta4 lib/support/object.rb
brainsome_typus-4.0.0.beta3 lib/support/object.rb
brainsome_typus-4.0.0.beta2 lib/support/object.rb
brainsome_typus-4.0.0.beta1 lib/support/object.rb
typus-3.1.10 lib/support/object.rb
typus-3.1.9 lib/support/object.rb