Last active
December 17, 2015 10:28
-
-
Save leviwilson/5594459 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddReserves | |
include Mohawk | |
select_list(:appointment_type, :id => 'whatever') | |
def any_checked? | |
appointment_type_options.any? &method(:checked?) | |
end | |
def checked?(which_type) | |
adapter.checkbox(:value => which_type).view.set? | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment