Sha256: a6c01be460a44e58ac25f1deeb937e02751ecca0b97cbfdf3b56bbe8807cd7f3
Contents?: true
Size: 177 Bytes
Versions: 1
Compression:
Stored size: 177 Bytes
Contents
class CityContext def required? true end def current @city end def apply(controller, value) @city = value || controller.params[:city].presence end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
contexts-2.0.0 | spec/dummy/app/contexts/city_context.rb |