Created
June 14, 2012 09:24
-
-
Save dentarg/2929276 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Larmobjekt | |
| property: marke, Enum[ ... ] | |
| def marken_for_select | |
| Larmobjekt.marken.map do |marke| | |
| { | |
| marke: marke | |
| selected: marke.eql?(self.marke) | |
| } | |
| end | |
| end | |
| end | |
| # Vilket marke används i loopen? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment