class SocialAvatarProxy::Engine
Public Class Methods
calculate_mounted_at()
click to toggle source
# File lib/social_avatar_proxy/engine.rb, line 12 def self.calculate_mounted_at route ||= Rails.application.routes.routes.detect do |route| route.app == self end # if it's not found, it's not mounted unless route raise "#{self} is not yet mounted." end # return the route with it's slashes stripped route.path.spec.to_s.gsub(/^\/|\/$/, "") end
mounted_at()
click to toggle source
# File lib/social_avatar_proxy/engine.rb, line 8 def self.mounted_at @mounted_at ||= calculate_mounted_at end