Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 17 lines (16 sloc) 0.363 kB
6f1bf52 @rafaelfranca Extract input_checked? to a module
rafaelfranca authored
1 module ActionView
2 module Helpers
3 module Tags
4 module Checkable
5 def input_checked?(object, options)
6 if options.has_key?("checked")
7 checked = options.delete "checked"
8 checked == true || checked == "checked"
9 else
10 checked?(value(object))
11 end
12 end
13 end
14 end
15 end
16 end
Something went wrong with that request. Please try again.