Skip to content

Commit

Permalink
Merge branch 'release/0.6.16.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed May 4, 2016
2 parents e0ba226 + 1601ca4 commit ae66f2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/decorators/redirect_rule_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
class RedirectRuleDecorator < ApplicationDecorator
delegate_all

def name
"#{url} -> #{redirect_to}"
end

def self.collections
[ :active ]
end
Expand Down
4 changes: 3 additions & 1 deletion lib/concerns/params_comparing_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def comparing(hash1, hash2, prev_object = nil)
end
if value.is_a? Hash
# because of nested values hash has one value (association_attributes)
comparison[key] = comparing hash2[key].values.first, value.values.first
if hash2[key]
comparison[key] = comparing hash2[key].values.first, value.values.first
end
next
end
unless hash2[key].to_s == value.to_s
Expand Down

0 comments on commit ae66f2b

Please sign in to comment.