Sha256: 5c2f7d16c2f12ed953585c1d410b368d8dc4f40a3e8c13f7144c5cdbf24fb30f
Contents?: true
Size: 404 Bytes
Versions: 2
Compression:
Stored size: 404 Bytes
Contents
module UrlProcessor def navigation_item_class(url_value) case url_value when Hash url_value[:controller]=controller.controller_name unless url_value[:controller] "active" if url_value[:controller]==controller.controller_name and url_value[:action]==controller.action_name when String "active" if request.fullpath.split("?")[0] == url_value.split("?")[0] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bootstrap_helpers-0.0.9 | lib/bootstrap_helpers/url_processor.rb |
bootstrap_helpers-0.0.8 | lib/bootstrap_helpers/url_processor.rb |