Skip to content

Commit ad379ce

Browse files
committed
Set published at as permitted param in publishabel concern
1 parent 883116e commit ad379ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/models/concerns/better_together/publishable.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,13 @@ def scheduled?
3434
published_at >= DateTime.current
3535
end
3636
end
37+
38+
class_methods do
39+
def extra_permitted_attributes
40+
super + [
41+
:published_at
42+
]
43+
end
44+
end
3745
end
3846
end

0 commit comments

Comments
 (0)