Permalink
Browse files

Add :login to LABEL_COLUMNS

  • Loading branch information...
1 parent 6a423fb commit d22d53655ef528a0d0a2e9ae619bbd39b9fc76af @mig-hub committed Aug 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sequel_crushyform.rb
@@ -101,7 +101,7 @@ def dropdown_cache
end
def reset_dropdown_cache; @dropdown_cache = nil; end
# Generic column names for label
- LABEL_COLUMNS = [:title, :label, :fullname, :full_name, :surname, :lastname, :last_name, :name, :firstname, :first_name, :caption, :reference, :file_name, :body]
+ LABEL_COLUMNS = [:title, :label, :fullname, :full_name, :surname, :lastname, :last_name, :name, :firstname, :first_name, :login, :caption, :reference, :file_name, :body]
# Column used as a label
def label_column; @label_column ||= LABEL_COLUMNS.find{|c|columns.include?(c)}; end
def label_column=(n); @label_column=n; end

0 comments on commit d22d536

Please sign in to comment.