Skip to content

Commit a6560b7

Browse files
author
Alex Tharp
authored
Merge pull request #48 from cortex-cms/expose-seeder-errors
Expose Seeder Errors
2 parents 02cecd3 + 889b824 commit a6560b7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/tasks/cortex/core/media.rake

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace :cortex do
1313
creator_id: 1,
1414
contract_id: 1
1515
})
16-
media.save
16+
media.save!
1717

1818
puts "Creating Fields..."
1919

@@ -47,7 +47,7 @@ namespace :cortex do
4747
media.fields.new(name: 'Tags', field_type: 'tag_field_type')
4848
media.fields.new(name: 'Expiration Date', field_type: 'date_time_field_type')
4949
media.fields.new(name: 'Alt Tag', field_type: 'text_field_type')
50-
media.save
50+
media.save!
5151

5252
puts "Creating Wizard Decorators..."
5353
wizard_hash = {
@@ -116,9 +116,9 @@ namespace :cortex do
116116
}
117117

118118
media_wizard_decorator = Decorator.new(name: "Wizard", data: wizard_hash)
119-
media_wizard_decorator.save
119+
media_wizard_decorator.save!
120120

121-
ContentableDecorator.create({
121+
ContentableDecorator.create!({
122122
decorator_id: media_wizard_decorator.id,
123123
contentable_id: media.id,
124124
contentable_type: 'ContentType'
@@ -199,9 +199,9 @@ namespace :cortex do
199199
}
200200

201201
media_index_decorator = Decorator.new(name: "Index", data: index_hash)
202-
media_index_decorator.save
202+
media_index_decorator.save!
203203

204-
ContentableDecorator.create({
204+
ContentableDecorator.create!({
205205
decorator_id: media_index_decorator.id,
206206
contentable_id: media.id,
207207
contentable_type: 'ContentType'

0 commit comments

Comments
 (0)