Module: Troo::ModelHelpers

Included in:
Board, Card, Comment, List, Member, Refresh
Defined in:
lib/troo/models/model_helpers.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



24
25
26
# File 'lib/troo/models/model_helpers.rb', line 24

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#external_attributesObject



28
29
30
# File 'lib/troo/models/model_helpers.rb', line 28

def external_attributes
  self.attributes.delete_if { |k, _| k == :id || k == :default }
end