Skip to content

Commit

Permalink
Removed deprecated Spree::Zone#in_zone?
Browse files Browse the repository at this point in the history
  • Loading branch information
Trung Lê committed Mar 10, 2012
1 parent dc7e2f2 commit bbac985
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core/app/models/spree/zone.rb
Expand Up @@ -28,13 +28,6 @@ def kind=(value)
# do nothing - just here to satisfy the form
end

# TODO: Remove this method after 1.0
# alias to the new include? method
def in_zone?(address)
ActiveSupport::Deprecation.warn '#in_zone? is deprecated and will be removed in Spree > 1.0. Use #include? instead.'
include?(address)
end

def include?(address)
return false unless address

Expand Down

0 comments on commit bbac985

Please sign in to comment.