Class: Viewable::Page
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Viewable::Page
- Includes:
- Admin::Viewable::Page, Viewable, Field::UUID, Field::Url
- Defined in:
- app/models/viewable/page.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Field::UUID
#other_uuid, #uuid, #uuid_with
Methods included from Viewable
#list, models, #other_locales, #short_type, #unique_key_hash
Class Method Details
.names ⇒ Object
9 10 11 |
# File 'app/models/viewable/page.rb', line 9 def names @_names ||= CMS.html_names 'app/views/cms/pages' end |
Instance Method Details
#view_name ⇒ Object
14 15 16 |
# File 'app/models/viewable/page.rb', line 14 def view_name @_view_name ||= view_path.split('/').last end |