Sha256: 348566758d4f5588f4fbcea36f1cf08a80d3089169ebcfe87e508dbbf57ea4e9

Contents?: true

Size: 292 Bytes

Versions: 5

Compression:

Stored size: 292 Bytes

Contents

module Spontaneous::Plugins::Site
  module URL
    extend ActiveSupport::Concern

    module ClassMethods
      def public_url(path = "/")
        instance.public_url(path)
      end
    end

    def public_url(path = "/")
      "http://%s%s" % [ config.site_domain, path ]
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spontaneous-0.2.0.alpha7 lib/spontaneous/plugins/site/url.rb
spontaneous-0.2.0.alpha6 lib/spontaneous/plugins/site/url.rb
spontaneous-0.2.0.alpha5 lib/spontaneous/plugins/site/url.rb
spontaneous-0.2.0.alpha4 lib/spontaneous/plugins/site/url.rb
spontaneous-0.2.0.alpha3 lib/spontaneous/plugins/site/url.rb