Sha256: 58a375de4f4cfdffaf91d1ff05ad1bef82702e37eaf9ef0538201090dfc274d1

Contents?: true

Size: 231 Bytes

Versions: 14

Compression:

Stored size: 231 Bytes

Contents

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

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
constructor-pages-0.7.0 app/helpers/constructor_pages/code_name_uniq.rb
constructor-cms-0.7.0 pages/app/helpers/constructor_pages/code_name_uniq.rb
constructor-pages-0.6.4 app/helpers/constructor_pages/code_name_uniq.rb
constructor-cms-0.6.4 pages/app/helpers/constructor_pages/code_name_uniq.rb
constructor-cms-0.6.3 pages/app/helpers/constructor_pages/code_name_uniq.rb
constructor-pages-0.6.3 app/helpers/constructor_pages/code_name_uniq.rb
constructor-pages-0.6.2 app/helpers/constructor_pages/code_name_uniq.rb
constructor-cms-0.6.2 pages/app/helpers/constructor_pages/code_name_uniq.rb
constructor-pages-0.6.1 app/helpers/constructor_pages/code_name_uniq.rb
constructor-cms-0.6.1 pages/app/helpers/constructor_pages/code_name_uniq.rb
constructor-pages-0.6.0 app/helpers/constructor_pages/code_name_uniq.rb
constructor-cms-0.6.0 pages/app/helpers/constructor_pages/code_name_uniq.rb
constructor-pages-0.5.8 app/helpers/constructor_pages/code_name_uniq.rb
constructor-cms-0.5.8 pages/app/helpers/constructor_pages/code_name_uniq.rb