Class: Architecture

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

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


20
21
22
23
# File 'app/models/architecture.rb', line 20

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

#to_paramObject


16
17
18
# File 'app/models/architecture.rb', line 16

def to_param
  name
end