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
Psych::SyntaxError: (<unknown>): mapping values are not allowed in this context at line 28 column 15 | |
/Users/Mike/.rvm/gems/ruby-2.1.5@PartnerList3/gems/sprig-0.1.6/lib/sprig/parser/yml.rb:5:in `parse' | |
/Users/Mike/.rvm/gems/ruby-2.1.5@PartnerList3/gems/sprig-0.1.6/lib/sprig/source.rb:23:in `data' | |
/Users/Mike/.rvm/gems/ruby-2.1.5@PartnerList3/gems/sprig-0.1.6/lib/sprig/source.rb:10:in `records' | |
/Users/Mike/.rvm/gems/ruby-2.1.5@PartnerList3/gems/sprig-0.1.6/lib/sprig/seed/factory.rb:21:in `add_seeds_to_hopper' | |
/Users/Mike/.rvm/gems/ruby-2.1.5@PartnerList3/gems/sprig-0.1.6/lib/sprig/directive_list.rb:10:in `block in add_seeds_to_hopper' | |
/Users/Mike/.rvm/gems/ruby-2.1.5@PartnerList3/gems/sprig-0.1.6/lib/sprig/directive_list.rb:9:in `each' | |
/Users/Mike/.rvm/gems/ruby-2.1.5@PartnerList3/gems/sprig-0.1.6/lib/sprig/directive_list.rb:9:in `add_seeds_to_hopper' | |
/Users/Mike/.rvm/gems/ruby-2.1.5@PartnerList3/gems/sprig-0.1.6/lib/sprig/helpers.rb:9:in `sprig' | |
/Users/Mike/Code/PartnerList3/db/seeds/development.rb:6:in `<top |
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
records: | |
- sprig_id: 97, | |
vendor_name: "Vendor 1 Corp", | |
isValidated: "false", | |
isVisible: "true", | |
type: "Vendoraccount" | |
- sprig_id: 98, | |
vendor_name: "Vendor 2 Corp", | |
isValidated: "false", | |
isVisible: "true", |
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
records: | |
- sprig_id: 2 | |
email: "mayerms@gmail.com" | |
role: 0 | |
confirmed_at: "<%= Time.now %>" | |
password: 'lovelove' | |
password_confirmation: 'lovelove' | |
tos: true | |
- sprig_id: 3 | |
email: "brian@brian.com" |
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
records: | |
- sprig_id: 1 | |
consultantaccount_id: "<%= sprig_record(Consultantaccount, 2).id %>" | |
content: "I love PartnerList!" | |
- sprig_id: 2 | |
consultantaccount_id: "<%= sprig_record(Consultantaccount, 2).id %>" | |
content: "Hi I'm Brian" | |
- sprig_id: 3 | |
consultantaccount_id: "<%= sprig_record(Consultantaccount, 4).id %>" | |
content: "Hello to the PartnerList community!" |
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
records: | |
- sprig_id: 22 | |
user_id: "<%= sprig_record(User, 22).id %>" | |
employable_id: "<%= sprig_record(Vendoraccount, 97).id %>" | |
employable_type: "Vendoraccount" | |
first_name: "Mike" | |
last_name: "Mayer" | |
profilename: "mikesmayersa" | |
type: "Stafferaccount" | |
- sprig_id: 23 |
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
records: | |
- sprig_id: 1 | |
consultantaccount_id: "<%= sprig_record(Consultantaccount, 2).id %>" | |
peerpartner_id: "<%= sprig_record(Consultantaccount, 3).id %>" | |
state: pending | |
- sprig_id: 2 | |
consultantaccount_id: "<%= sprig_record(Consultantaccount, 3).id %>" | |
peerpartner_id: "<%= sprig_record(Consultantaccount, 2).id %>" | |
state: requested |
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
records: | |
- sprig_id: 82, | |
firm_name: "MMC & Account", | |
isValidated: "false", | |
isVisible: "true", | |
type: "Firmaccount" | |
- sprig_id: 83, | |
firm_name: "Lewis & Account", | |
isValidated: "false", | |
isVisible: "true", |
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
records: | |
- sprig_id: 22 | |
user_id: "<%= sprig_record(User, 2).id %>" | |
employable_id: "<%= sprig_record(Firmaccount, 82).id %>" | |
employable_type: "Firmaccount" | |
consultant_firstname: "Mike" | |
consultant_lastname: "Mayer" | |
consultant_profilename: "mikesmayer" | |
type: "Consultantaccount" | |
- sprig_id: 23 |
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
# This will be run during `rake db:seed` in the :development environment. | |
include Sprig::Helpers | |
sprig [Consultant, Firm, Peerpartnership, Staffer, Status, User, Vendor] | |
user = CreateAdminService.new.call | |
puts 'CREATED ADMIN USER: ' << user.email |
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
// String literal, string primitive | |
// This is not an object | |
// This doesn't have any of its own functions | |
var schoolName = "General Assembly" | |
// When I call this, it temporarily makes a String Object around it. | |
// Slower. I'll talk about why in a second | |
var upperCaseSchoolName = schoolName.toUpperCase | |
/* |
NewerOlder