Hello All,
I want to pass conditions in respond_with like this:
user = User.where(“updated_at >= :start_date AND updated_at <=
:end_date”,
{:start_date => some_date, :end_date => Time.now})
respond_with(user, :include => :sub_users)
I need to pass the same parameters in case of sub users.
How can I achieve this?
Thanks,
Avi