Module: ConstructorPages::CodeNameUniq
Instance Method Summary collapse
Instance Method Details
#code_name_uniqueness ⇒ Object
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 |