module ListModule
module WhereModule
class WhereAuto < Base
- attr :method_name
def set_default
super
- @where_manifest['args']['method_name'] ||= self.base_name
end
def init
super
- @method_name = @args['method_name']
end
- def base_name
+ def method_name
if self.model.content?
'public_list_where'
else
end
def conditions
- yield @method_name
+ yield self.method_name
end
end