Class: ArDocStore::Attributes::Boolean
- Defined in:
- lib/ar_doc_store/attributes/boolean.rb
Instance Attribute Summary
Attributes inherited from Base
#attribute, #conversion, #default, #model, #options
Instance Method Summary collapse
Methods inherited from Base
#add_ransacker, #attribute_options, #build, build, #define_query_method, #embedded?, #initialize, #store_attribute
Methods included from CallbackSupport
Constructor Details
This class inherits a constructor from ArDocStore::Attributes::Base
Instance Method Details
#attribute_type ⇒ Object
12 13 14 |
# File 'lib/ar_doc_store/attributes/boolean.rb', line 12 def attribute_type ActiveModel::Type::Boolean end |
#predicate ⇒ Object
4 5 6 |
# File 'lib/ar_doc_store/attributes/boolean.rb', line 4 def predicate 'bool' end |
#type ⇒ Object
8 9 10 |
# File 'lib/ar_doc_store/attributes/boolean.rb', line 8 def type :boolean end |