remove constants / replace by class methods

This commit is contained in:
kikito
2015-09-10 18:07:30 +02:00
parent 43bdfb940e
commit 95fc7ea949
3 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,4 @@
class Organization < ActiveRecord::Base
NAME_LENGTH = {maximum: Organization.columns.find { |c| c.name == 'name' }.limit || 60}
belongs_to :user, touch: true
validates :name, presence: true