Module: TooShort::InstanceMethods

Defined in:
lib/ar_base_extensions.rb

Instance Method Summary collapse

Instance Method Details

#short_urlObject



29
30
31
32
33
# File 'lib/ar_base_extensions.rb', line 29

def short_url
  validate_and_cleanup_short_url_options(short_url_options)
  hash = TooShort.id_to_hash(self.id)
  [short_url_host, short_url_scope, hash].compact.join('/')
end