Class: Kanbanery::Base

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/ranbanery/base.rb

Direct Known Subclasses

Column, Project, Subtask, Task

Instance Method Summary collapse

Instance Method Details

#to_json(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/ranbanery/base.rb', line 6

def to_json(options={})
  except = self.class.readonly_fields
  except << :created_at
  except << :updated_at
  super(options.merge(except: except))
end