Sha256: 4d0fcdb645b025fbce2730f47dd8f205a9559b85e94634b6e737012aba7cc292

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 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.0 lib/acts_as_follower/follower_lib.rb