Class: SmoothOperator::Rails
- Includes:
- ActiveModel::Conversion, ActiveModel::Validations, ActiveModel::Validations::Callbacks
- Defined in:
- lib/smooth_operator.rb
Constant Summary
Constants included from Operator::HttpMethods
Operator::HttpMethods::HTTP_VERBS
Instance Attribute Summary
Attributes included from Persistence
Instance Method Summary collapse
Methods inherited from Base
Methods included from FinderMethods
Methods included from SmoothOperator::Relation::Associations
#belongs_to, #has_many, #has_one, #reflect_on_all_associations, #reflect_on_association, #reflections
Methods included from Translation
Methods included from Persistence
#destroy, #destroyed?, #get_primary_key, included, #marked_for_destruction?, #new_record?, #persisted?, #reload, #save, #save!
Methods included from Operator
Instance Method Details
#column_for_attribute(attribute_name) ⇒ Object
36 37 38 39 40 |
# File 'lib/smooth_operator.rb', line 36 def column_for_attribute(attribute_name) type = get_attribute_type(attribute_name) ActiveRecord::ConnectionAdapters::Column.new(attribute_name.to_sym, type, type) end |