Module: RTM::Validation::Association

Defined in:
rtm/lib/rtm/validation.rb

Instance Method Summary

Instance Method Details

- (Boolean) valid?

Returns:

  • (Boolean)


8
9
10
11
12
13
# File 'rtm/lib/rtm/validation.rb', line 8

def valid?
  return false unless parent
  return false unless type
  return false if roles.empty?
  true
end