Sha256: e6fea8132de2fd24de0cb4ac4811f4f8a3ab9f7cd33ce26bf76727d3ab81b749

Contents?: true

Size: 317 Bytes

Versions: 7

Compression:

Stored size: 317 Bytes

Contents

module Viewable
  class Block < ActiveRecord::Base
    include Viewable
    include Field::UUID
    include Admin::Viewable::Block

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

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