Class: Viewable::Block
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Viewable::Block
- Includes:
- Admin::Viewable::Block, Viewable, Field::UUID
- Defined in:
- app/models/viewable/block.rb
Instance Method Summary collapse
Methods included from Admin::Viewable::Block
Methods included from Field::UUID
#other_uuid, #uuid, #uuid_with
Methods included from Viewable
#list, #other_locales, #unique_key_hash
Instance Method Details
#partial_name ⇒ Object
11 12 13 |
# File 'app/models/viewable/block.rb', line 11 def partial_name @_partial_name ||= unique_key_name.partition('/').first end |
#partial_path ⇒ Object
7 8 9 |
# File 'app/models/viewable/block.rb', line 7 def partial_path @_partial_path ||= "cms/blocks/#{partial_name}" end |