Module: ActiveRecordExtension::ClassMethods

Defined in:
lib/invisible_controller/active_record_extension.rb

Instance Method Summary collapse

Instance Method Details

#whitelistedObject



4
5
6
7
8
# File 'lib/invisible_controller/active_record_extension.rb', line 4

def whitelisted()
  return self::WHITELISTED                                       if self.constants.include?(:WHITELISTED)
  return column_names_with_nested_attributes - self::BLACKLISTED if self.constants.include?(:BLACKLISTED)
  column_names_with_nested_attributes
end