Class: CanTango::Permit::Attribute::Builder

Inherits:
Builder::Permit::Base show all
Includes:
TestAttribute
Defined in:
lib/cantango/permit/attribute.rb

Instance Attribute Summary

Attributes inherited from Builder::Permit::Base

#ability, #options

Instance Method Summary collapse

Methods included from TestAttribute

#plural_attribute, #test_plural, #test_single, #valid?

Methods inherited from Builder::Permit::Base

#initialize, #permit_type

Methods included from Helper::Naming

#account_name, #permit_name, #permit_type

Constructor Details

This class inherits a constructor from CanTango::Builder::Permit::Base

Instance Method Details

#buildObject



55
56
57
58
# File 'lib/cantango/permit/attribute.rb', line 55

def build
  return [] unless valid?
  super
end