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.14.0 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.13.6 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.13.5 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.13.4 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.13.3 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.13.2 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.13.1 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.13.0 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.12.3 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.12.2 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.12.1 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.12.0 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.11.7 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.11.5 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.11.4 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.11.3 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.11.2 lib/rocket_cms/models/active_record/menu.rb
rocket_cms-0.11.1 lib/rocket_cms/models/active_record/menu.rb