Skip to content

Commit 8e71917

Browse files
jsphmcalumgunn
authored and
calumgunn
committed
Add options to update_attributes method signatures.
1 parent 6ea2b41 commit 8e71917

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
@@ -28,7 +28,7 @@ def ordered_#{embed_name} # def orderd_slices
2828
end
2929
end
3030

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

0 commit comments

Comments
 (0)