class Shortenizer::MountPoint
Attributes
location[R]
Public Class Methods
new()
click to toggle source
# File lib/shortenizer/mount_point.rb, line 5 def initialize @location = Rails.application.routes.routes.select {|r| r.name == 'shortenizer' }.first.path.spec.to_s end
Public Instance Methods
at_root?()
click to toggle source
# File lib/shortenizer/mount_point.rb, line 9 def at_root? @location == '/' end