Could you have your Authenticated constrain inherit from the Subdomain
constraint and implement its matches? method as well?
Something like this maybe? Don't have too much experience with constraints
so I'm not sure of the exact syntax, but might be worth playing around.
class Authenticated < Subdomain
def matches?(request)
return false unless super(request) # check Subdomain constraint
# other code here for authenticated constraint
end
end
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/xfRNcfyl0NgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.