Module: ConstructorPages::CodeNameUniq

Included in:
Field, Template
Defined in:
app/helpers/constructor_pages/code_name_uniq.rb

Instance Method Summary collapse

Instance Method Details

#code_name_uniquenessObject


3
4
5
# File 'app/helpers/constructor_pages/code_name_uniq.rb', line 3

def code_name_uniqueness
  errors.add(:base, :code_name_already_in_use) unless Page.check_code_name(code_name) and check_code_name(code_name)
end