Class: SmoothOperator::Rails

Inherits:
Base
  • Object
show all
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

#last_remote_call

Instance Method Summary collapse

Methods inherited from Base

smooth_operator?

Methods included from FinderMethods

#find

Methods included from SmoothOperator::Relation::Associations

#belongs_to, #has_many, #has_one, #reflect_on_all_associations, #reflect_on_association, #reflections

Methods included from Translation

#human_attribute_name

Methods included from Persistence

#destroy, #destroyed?, #get_primary_key, included, #marked_for_destruction?, #new_record?, #persisted?, #reload, #save, #save!

Methods included from Operator

#make_the_call

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