Class: Ptable

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Authorization
Defined in:
app/models/ptable.rb

Overview

This models the partition tables for a disk layouts It supports both static partition maps and dynamic scripts that create partition tables on-the-fly A host object may contain a reference to one of these ptables or, alternatively, it may contain a modified version of one of these in textual form

Instance Method Summary collapse

Methods included from Authorization

#enforce_create_permissions, #enforce_destroy_permissions, #enforce_edit_permissions, #enforce_permissions, included, #permission_failed?

Instance Method Details

#as_json(options = {}) ⇒ Object


21
22
23
24
# File 'app/models/ptable.rb', line 21

def as_json(options={})
  options ||= {}
  super({:only => [:name, :id]}.merge(options))
end