remove constants / replace by class methods
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user