Module: ActsAsTable::ValueProvider
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/acts_as_table/value_provider.rb
Overview
Note:
The minimum implementation is the protected _get_value and _set_value instance methods.
ActsAsTable value provider (concern).
Defined Under Namespace
Modules: InstanceMethods Classes: WrappedValue
Class Method Summary collapse
-
.acts_as_table_value_provider ⇒ void
Mark the class as an ActsAsTable value provider.
-
.acts_as_table_value_provider? ⇒ Boolean
Returns
trueif the class is an ActsAsTable value provider.
Class Method Details
.acts_as_table_value_provider ⇒ void
This method returns an undefined value.
Mark the class as an ActsAsTable value provider.
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'app/models/concerns/acts_as_table/value_provider.rb', line 19 def acts_as_table_value_provider unless self.acts_as_table_value_provider? self.class_eval do def self.acts_as_table_value_provider? true end end self.include(InstanceMethods) end return end |
.acts_as_table_value_provider? ⇒ Boolean
Returns true if the class is an ActsAsTable value provider. Otherwise, returns false.
12 13 14 |
# File 'app/models/concerns/acts_as_table/value_provider.rb', line 12 def acts_as_table_value_provider? false end |