module Amistad
  class << self
    attr_accessor :friend_model

    def configure
      yield self
    end

    def friend_model
      @friend_model || 'User'
    end

    def friendship_model
      "#{self.friend_model}Friendship"
    end

    def friendship_class
      Amistad::Friendships.const_get(self.friendship_model)
    end
  end
end

module Amistad
  class << self
    attr_accessor :friend_model

    def configure
      yield self
    end

    def friend_model
      @friend_model || 'User'
    end

    def friendship_model
      "Friendship"
    end

    def friendship_class
      Amistad::Friendships::Friendship
    end
  end
end

Add support to namespaced friend model
Add support to namespaced friend model

This commit only removes the unecessary dependency of model naming.
It's uneeded to have a friendship_model dependent on friend_model's
name, since it brings problems with namespaced models (e.g.
'User::Profile').
