Class: Group
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Group
- Defined in:
- app/models/group.rb
Instance Attribute Summary collapse
-
#foreign_id ⇒ Object
Returns the value of attribute foreign_id.
Instance Method Summary collapse
Instance Attribute Details
#foreign_id ⇒ Object
Returns the value of attribute foreign_id.
11 12 13 |
# File 'app/models/group.rb', line 11 def foreign_id @foreign_id end |
Instance Method Details
#as_json ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'app/models/group.rb', line 29 def as_json { :id => id, :title => title, :icon => icon.url, :parent => group_id } end |
#icon_url ⇒ Object
25 26 27 |
# File 'app/models/group.rb', line 25 def icon_url icon.url end |