Sha256: 1e94a469c8fe64f2b92d390f68c9ad9f67b486ef51da5a4213a9fa974abb2d43

Contents?: true

Size: 301 Bytes

Versions: 7

Compression:

Stored size: 301 Bytes

Contents

module Viewable
  class Page < ActiveRecord::Base
    include Viewable
    include Field::UUID
    include Field::Url
    include Admin::Viewable::Page

    def view_name
      @_view_name ||= view_path.split('/').last
    end

    private

    def uuid_columns
      super + [:url]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails_admin_cms-0.1.1 app/models/viewable/page.rb
rails_admin_cms-0.0.9 app/models/viewable/page.rb
rails_admin_cms-0.0.7 app/models/viewable/page.rb
rails_admin_cms-0.0.6 app/models/viewable/page.rb
rails_admin_cms-0.0.5 app/models/viewable/page.rb
rails_admin_cms-0.0.4 app/models/viewable/page.rb
rails_admin_cms-0.0.3 app/models/viewable/page.rb