Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ef0706455d
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.306 kb
module ControllerHelpers::Web::Communities
def self.included(base)
base.class_eval do
layout 'community'
helper_method :community
include ControllerHelpers::Web
end
end
private
def community
@_community ||= Community.active.find_by_uri! request.subdomain
end
end
Jump to Line
Something went wrong with that request. Please try again.