Klaus V2.0

This commit is contained in:
Florian Bogenhard
2014-08-11 01:35:48 +02:00
parent 4a1a0937d4
commit cedeffd2c6
55 changed files with 1267 additions and 40 deletions
+13
View File
@@ -0,0 +1,13 @@
module ToDropdown
extend ActiveSupport::Concern
def to_option
[name, id]
end
module ClassMethods
def to_dropdown
all.order(:name).map(&:to_option)
end
end
end