This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Built with redpotion (potion new appname). I commented out cocoapods and motion-yaml thinking they were throwing the errors but still no love. | |
MaggotEater:raffle grimm$ rake | |
Ignoring bcrypt-3.1.11 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.11 | |
Ignoring bcrypt-ruby-3.0.1 because its extensions are not built. Try: gem pristine bcrypt-ruby --version 3.0.1 | |
Ignoring bindex-0.5.0 because its extensions are not built. Try: gem pristine bindex --version 0.5.0 | |
Ignoring binding_of_caller-0.7.3 because its extensions are not built. Try: gem pristine binding_of_caller --version 0.7.3 | |
Ignoring binding_of_caller-0.7.2 because its extensions are not built. Try: gem pristine binding_of_caller --version 0.7.2 | |
Ignoring byebug-9.1.0 because its extensions are not built. Try: gem pristine byebug --version 9.1.0 | |
Ignoring byebug-9.0.6 because its extensions are not built. Try: gem pristine byebug --version 9.0.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SQL (1.1ms) DELETE FROM "sensor_events" WHERE "sensor_events"."id" = $1 [["id", 334602]] | |
(0.5ms) COMMIT | |
Redirected to http://0.0.0.0:3000/admin/sensor_events | |
Completed 303 See Other in 37ms (ActiveRecord: 12.3ms) | |
Started GET "/admin/sensor_events" for 127.0.0.1 at 2017-10-30 14:21:57 -0400 | |
Processing by Admin::SensorEventsController#index as */* | |
AdminUser Load (0.8ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = $1 ORDER BY "admin_users"."id" ASC LIMIT $2 [["id", 2], ["LIMIT", 1]] | |
Redirected to http://0.0.0.0:3000/admin/sensor_events/334602/edit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
3 => "Rigo 1 strap brace", | |
2 => "Rigo 2 strap brace", | |
1 => "Rigo 3 strap brace" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PatientInfoCell < PM::XLFormCell | |
include PatientInfoCellStylesheet | |
def on_load | |
apply_style :patient_info_cell | |
# Add subviews here, like so: | |
# append UILabel, :label_style_here | |
# -or- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StrapCell < PM::XLFormCell | |
attr_accessor :position, :tension, :name | |
attr_accessor :strap_name, :strap_position, :strap_tension | |
include StrapCellStylesheet | |
def setup(data_cell, screen) | |
super | |
draw_cell | |
# mp self.methods.sort - Object.instance_methods |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BaseProduct < ActiveRecord::Base | |
enum location: { unknown: 0, upper: 1, middle: 2, lower: 3} | |
enum feedback: { light: 1, vibration: 2} | |
# has_many :sensor_locations | |
has_many :products | |
def sensor_locations=(sensor_locations) | |
self.locations_mask = (sensor_locations & BaseProduct.locations.keys).map { |r| 2**BaseProduct.locations.keys.index(r) }.sum |