Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prevent ActiveRecord::AssociationTypeMismatch on sheet_instance.creat…

…e_root Closes #6

Could use further investigation; I don't understand why 'User(...) expected, got User(...)' is thrown..

See radiant#6
and radiant#4
  • Loading branch information...
commit 6727f0688dc2b28305edd7addf4024b6d7887178 1 parent 0bd5a6a
@jomz jomz authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  app/models/sheet.rb
View
1  app/models/sheet.rb
@@ -19,6 +19,7 @@ def self.root
def self.create_root
s = self.new_with_defaults
s.parent_id = Page.find_by_slug('/').id
+ s.created_by_id = ''
s.slug = self.name == 'StylesheetPage' ? 'css' : 'js'
s.save
end
Please sign in to comment.
Something went wrong with that request. Please try again.