module Movescount::Concern::Move::ClassMethods
Attributes
movescount_options[R]
Private Instance Methods
movescount(options = {})
click to toggle source
Allow to set the options from the class
# File lib/movescount/concern/move.rb, line 55 def movescount(options = {}) default_options = { move_id_column: :movescount_move_id, member_relation: :user, points_relation: :points, points_clear_method: :delete_all, point_attributes: { Latitude: nil, Longitude: nil, Altitude: nil, Cadence: nil, Distance: nil, HeartRate: nil, Power: nil, Speed: nil, Temperature: nil, MeasuredAt: nil } } @movescount_options = default_options.merge options end