Sha256: 3a833c4d7abf963d264eb95b817a3180545da3280d8e57031fbe10f5c44cbaf2
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
module Viewable class Page < ActiveRecord::Base include Viewable include Field::UUID include Field::Url include Admin::Viewable::Page class << self def names @_names ||= CMS.html_names 'app/views/cms/pages' end end def view_name @_view_name ||= view_path.split('/').last end private def uuid_columns super + [:url] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_admin_cms-0.0.2 | app/models/viewable/page.rb |
rails_admin_cms-0.0.1 | app/models/viewable/page.rb |