I have a Rails nested module as follow:
lib
- Parent
- Child1.rb
- Child2.rb
In Child1.rb I define:
module Parent
module Child1
end
end
Child2 module is defined similarly.
In my model, I call:
model MyModel
include Parent::Child1
include Parent::Child2
end
I have a few constants to be shared between Child1 and Child2. How should I go about implementing it?