Module: MongoidShortener
- Defined in:
- lib/mongoid_shortener.rb,
lib/mongoid_shortener/engine.rb,
lib/mongoid_shortener/version.rb,
app/models/mongoid_shortener/shortened_url.rb,
app/helpers/mongoid_shortener/shortened_urls_helper.rb,
app/controllers/mongoid_shortener/application_controller.rb,
app/controllers/mongoid_shortener/shortened_urls_controller.rb
Defined Under Namespace
Modules: ShortenedUrlsHelper Classes: ApplicationController, Engine, ShortenedUrl, ShortenedUrlsController
Constant Summary collapse
- VERSION =
"1.0.1"
- @@root_url =
"http://localhost:3000"
- @@prefix_url =
"http://localhost:3000/~"
Class Method Summary collapse
Class Method Details
.generate(url) ⇒ Object
9 10 11 |
# File 'lib/mongoid_shortener.rb', line 9 def self.generate url ShortenedUrl.generate url end |