Sha256: f5e78c4c8b666e15f219d926aa668772c03c876d14669f8162f0024c1d39978d

Contents?: true

Size: 294 Bytes

Versions: 4

Compression:

Stored size: 294 Bytes

Contents

require "mongoid_shortener/engine"

module MongoidShortener
  # The prefix_url for generated shortened url
  mattr_accessor :prefix_url, :root_url
  @@root_url = "http://localhost:3000"
  @@prefix_url = "http://localhost:3000/~"

  def self.generate url
    ShortenedUrl.generate url
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid_shortener-1.1.0 lib/mongoid_shortener.rb
mongoid_shortener-1.0.3 lib/mongoid_shortener.rb
mongoid_shortener-1.0.2 lib/mongoid_shortener.rb
mongoid_shortener-1.0.1 lib/mongoid_shortener.rb