Sha256: a475dcbb77ab115f0c5e47a35cff02df43c8b7ac568d434c33f3c6cd97733589

Contents?: true

Size: 280 Bytes

Versions: 10

Compression:

Stored size: 280 Bytes

Contents

class Spontaneous::Site
  module URL
    extend Spontaneous::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

10 entries across 10 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 lib/spontaneous/site/url.rb
spontaneous-0.2.0.beta9 lib/spontaneous/site/url.rb
spontaneous-0.2.0.beta8 lib/spontaneous/site/url.rb
spontaneous-0.2.0.beta7 lib/spontaneous/site/url.rb
spontaneous-0.2.0.beta6 lib/spontaneous/site/url.rb
spontaneous-0.2.0.beta5 lib/spontaneous/site/url.rb
spontaneous-0.2.0.beta4 lib/spontaneous/site/url.rb
spontaneous-0.2.0.beta3 lib/spontaneous/site/url.rb
spontaneous-0.2.0.beta2 lib/spontaneous/site/url.rb
spontaneous-0.2.0.beta1 lib/spontaneous/site/url.rb