This file contains hidden or 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
| tallies = Tally.discharge.where(organization_id: [64,8,1]).where('started_at > (?)', DateTime.now - 30.hours).not_closed | |
| tallies.each do |tally| | |
| wq = tally.voyage.work_queue | |
| next if wq.blank? | |
| tally.tallied_cargos.each do |tallied_cargo| | |
| next if tallied_cargo.work_queue_item.present? | |
| tallied_cargo.organization.work_queue_items.create( | |
| work_queue: tallied_cargo.tally.voyage.work_queue, |
This file contains hidden or 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
| Row | Season | No. in series | Company | Deal | Industry | Entrepreneur Gender | Amount | Equity | Valuation | Corcoran | Cuban | Greiner | Herjavec | John | O'Leary | Harrington | Guest | # Sharks | $ per shark | Details / Notes | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 1 | 1 | Ava the Elephant | Yes | Healthcare | Female | $50,000 | 55% | $90,909 | 1 | 1 | $50,000 | |||||||||
| 3 | 1 | 1 | Mr. Tod's Pie Factory | Yes | Food and Beverage | Male | $460,000 | 50% | $920,000 | 1 | 1 | 2 | $230,000 | ||||||||
| 4 | 1 | 1 | Wispots | No | Business Services | Male | 0 | ||||||||||||||
| 5 | 1 | 1 | College Foxes Packing Boxes | No | Lifestyle / Home | Male | 0 | ||||||||||||||
| 6 | 1 | 1 | Ionic Ear | No | Uncertain / Other | Male | 0 | ||||||||||||||
| 7 | 1 | 2 | A Perfect Pear | Yes | Food and Beverage | Female | $500,000 | 50% | $1,000,000 | 1 | 1 | 2 | $250,000 | ||||||||
| 8 | 1 | 2 | Classroom Jams | Yes | Children / Education | Male | $250,000 | 10% | $2,500,000 | 1 | 1 | 1 | 1 | 1 | 5 | $50,000 | |||||
| 9 | 1 | 2 | Lifebelt | No | Consumer Products | Male | 0 |
This file contains hidden or 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 Array | |
| def flatten_it(result = []) | |
| self.each do |value| | |
| value.is_a?(Array) ? value.flatten_it(result) : (result << value) | |
| end | |
| result | |
| end | |
| end |
This file contains hidden or 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
| /********************************************** | |
| * Ink v1.0.5 - Copyright 2013 ZURB Inc * | |
| **********************************************/ | |
| /* Client-specific Styles & Reset */ | |
| #outlook a { | |
| padding:0; |
This file contains hidden or 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
| RailsAdmin.config do |config| | |
| # include required models | |
| required_models = ["Blog", "Comment", "User", "Other"] | |
| required_models.each do |act_model| | |
| model_class = Object.const_get(act_model) | |
| config.model act_model do | |
| # find all attrs that start with encrpted_ (default attr_encrypted convention; change as required) | |
| encrypted_attrs = model_class.column_names.select{|k| k.match("encrypted_")} | |
| list do | |
| include_all_fields |