Class: Viewable::Block

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Admin::Viewable::Block, Viewable, Field::UUID
Defined in:
app/models/viewable/block.rb

Instance Method Summary collapse

Methods included from Admin::Viewable::Block

#rails_admin_label

Methods included from Field::UUID

#other_uuid, #uuid, #uuid_with

Methods included from Viewable

#list, #other_locales, #unique_key_hash

Instance Method Details

#partial_nameObject



11
12
13
# File 'app/models/viewable/block.rb', line 11

def partial_name
  @_partial_name ||= unique_key_name.partition('/').first
end

#partial_pathObject



7
8
9
# File 'app/models/viewable/block.rb', line 7

def partial_path
  @_partial_path ||= "cms/blocks/#{partial_name}"
end