Sha256: 491b7b856cc00de1f799f5fcb8e733b95fb29a5dd696347d4e3d5346d7e1d4d9

Contents?: true

Size: 357 Bytes

Versions: 78

Compression:

Stored size: 357 Bytes

Contents

module RocketCMS
  module Models
    module ActiveRecord
      module Menu
        extend ActiveSupport::Concern
        included do
          has_paper_trail if respond_to?(:has_paper_trail)
          validates_lengths_from_database
          if RocketCMS.config.localize
            translates :name
          end
        end
      end
    end
  end
end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
rocket_cms-0.37.1 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.37.0 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.36.0 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.35.0 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.34.0 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.33.1 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.33.0 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.32.0 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.31.1 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.31.0 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.30.0 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.29.0 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.28.0 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.27.8 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.27.7 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.27.6 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.27.5 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.27.4 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.27.3 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.27.2 lib/rocket_cms/models/active_record/menu.rb