Sha256: 2aa665f26f0e768be96be32fe699a4b4d75ce9bbd894abdfe2d2ba6edac808d2

Contents?: true

Size: 419 Bytes

Versions: 3

Compression:

Stored size: 419 Bytes

Contents

module Enjoy::Pages
  module Models
    module ActiveRecord
      module Blockset
        extend ActiveSupport::Concern

        included do
          has_paper_trail
          validates_lengths_from_database only: [:name]
          if Enjoy::Pages.config.localize
            translates :name
          end

          has_many :page_blocks, class_name: "Enjoy::Pages::Blockset"
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enjoy_cms_pages-0.4.1 lib/enjoy/pages/models/active_record/blockset.rb
enjoy_cms_pages-0.4.0 lib/enjoy/pages/models/active_record/blockset.rb
enjoy_cms_pages-0.4.0.beta3 lib/enjoy/pages/models/active_record/blockset.rb