app/models/menu_option.rb in e9_crm-0.1.6 vs app/models/menu_option.rb in e9_crm-0.1.7
- old
+ new
@@ -28,6 +28,10 @@
# [key (String)] The key for the assocated menu options.
#
def self.fetch_values(key)
connection.send(:select_values, options_for(key).order(:position).project('value').to_sql, 'Menu Option Select')
end
+
+ def to_s
+ value
+ end
end