Sha256: 5340c7f2af6c2255da37457570e552e89822171f9a6c9700363f8859193fb5bc
Contents?: true
Size: 290 Bytes
Versions: 1
Compression:
Stored size: 290 Bytes
Contents
module ActsAsFollower module FollowerLib private # Retrieves the parent class name if using STI. def parent_class_name(obj) if obj.class.superclass != ActiveRecord::Base return obj.class.superclass.name end return obj.class.name end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_follower-0.1.1 | lib/acts_as_follower/follower_lib.rb |