Class: CoreField
- Defined in:
- app/models/fields/core_field.rb
Overview
Copyright (c) 2008-2013 Michael Dvorkin and contributors.
Fat Free CRM is freely distributable under the terms of MIT license. See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
Schema Information
Table name: fields
id :integer not null, primary key type :string(255) field_group_id :integer position :integer name :string(64) label :string(128) hint :string(255) placeholder :string(255) as :string(32) collection :text disabled :boolean required :boolean minlength :integer maxlength :integer created_at :datetime updated_at :datetime
Constant Summary
Constants inherited from Field
Instance Method Summary collapse
Methods inherited from Field
#collection_string, #collection_string=, #column_type, field_types, #input_options, lookup_class, register, #render, #render_value
Instance Method Details
#error_on_destroy ⇒ Object
35 36 37 |
# File 'app/models/fields/core_field.rb', line 35 def error_on_destroy errors.add_to_base "Core fields cannot be deleted." end |