Skip to content

Commit

Permalink
Add options to update_attributes method signatures.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsphm authored and calumgunn committed Feb 11, 2016
1 parent 6ea2b41 commit 8e71917
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/models/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def template
"pages/show"
end

def update_attributes(attributes)
def update_attributes(attributes, options = {})
attributes = attributes.symbolize_keys

unless home?
Expand All @@ -160,7 +160,6 @@ def update_attributes(attributes)
end
end


# Added in merge or page & content
def set_keywords
super
Expand Down
2 changes: 1 addition & 1 deletion lib/slices/has_slices.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def ordered_#{embed_name} # def orderd_slices
end
end

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

Expand Down

0 comments on commit 8e71917

Please sign in to comment.