Skip to content

Commit 81969a6

Browse files
committed
Add options to update_attributes method signatures.
1 parent 39a9c37 commit 81969a6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/models/page.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def template
141141
"pages/show"
142142
end
143143

144-
def update_attributes(attributes)
144+
def update_attributes(attributes, options = {})
145145
attributes = attributes.symbolize_keys
146146

147147
unless home?
@@ -160,7 +160,6 @@ def update_attributes(attributes)
160160
end
161161
end
162162

163-
164163
# Added in merge or page & content
165164
def set_keywords
166165
super

lib/slices/has_slices.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def ordered_#{embed_name} # def orderd_slices
2626
end
2727
end
2828

29-
def update_attributes(attributes)
29+
def update_attributes(attributes, options = {})
3030
[:slices, :set_slices].each do |embed_name|
3131
next if attributes[embed_name].nil?
3232

0 commit comments

Comments
 (0)