opened
Uysim
username_0
I need multiple domain per site. Can you implement that ?

Thank before hand
Multiple Domain Needed
issue
created
owen2345
username_1
@username_0 
Please try this:
- create an initializer in your project and add a method: cama_current_site_helper(args)
- args is a Hash{site, request}
- samples:
def cama_current_site_helper(args)
  args[:site] = Cama::Site.order(id: :asc).last.decorate
  # args[:site] = Cama::Site.find(10).last.decorate if args[:request].original_url.to_s.parse_domain == "my_domain.com"
  # args[:site] = Cama::Site.find_by_slug('my_domain_x').decorate if args[:request].original_url.to_s.parse_domain == "my_domain_xx"
end
comment
created
owen2345
username_1
Note: use master branch please.
comment
created
rubyjedi
username_2
This is a great tip, thanks! Definitely belongs in the Wiki. :-)
comment
closed
owen2345
username_1
issue