module Webheart
class Selectbox
include ::Mongoid::Document
field :select_kind, type: ::String
field :select_items, type: ::Hash
store_in collection: "selectbox"
class << self
def get_select_options(select_kind)
self.where(select_kind: select_kind)
end
end
end
end
Created
November 9, 2012 07:44
-
-
Save kenjikaneko/4044291 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment