update get_params method in Rule model