Skip to content

Commit

Permalink
Remove obsolete .deprecate method
Browse files Browse the repository at this point in the history
This should have been removed in 2.0.0.
  • Loading branch information
tfausak committed May 27, 2015
1 parent 2fb2e9a commit bb51e90
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 26 deletions.
11 changes: 0 additions & 11 deletions lib/active_interaction.rb
Expand Up @@ -11,17 +11,6 @@
#
# @version 2.0.0
module ActiveInteraction
DEPRECATOR =
if ::ActiveSupport::Deprecation.respond_to?(:new)
::ActiveSupport::Deprecation.new('2', 'ActiveInteraction')
end
private_constant :DEPRECATOR

def self.deprecate(klass, method, message = nil)
options = { method => message }
options.merge!(deprecator: DEPRECATOR) if DEPRECATOR
klass.deprecate(options)
end
end

require 'active_interaction/version'
Expand Down
5 changes: 0 additions & 5 deletions lib/active_interaction/base.rb
Expand Up @@ -99,11 +99,6 @@ def method_missing(*args, &block)
end
end

def model(*)
super
end
ActiveInteraction.deprecate self, :model, 'use `object` instead'

private

# @param klass [Class]
Expand Down
5 changes: 0 additions & 5 deletions lib/active_interaction/filters/array_filter.rb
Expand Up @@ -54,11 +54,6 @@ def method_missing(*, &block)
end
end

def model(*)
super
end
ActiveInteraction.deprecate self, :model, 'use `object` instead'

private

# @return [Array<Class>]
Expand Down
5 changes: 0 additions & 5 deletions lib/active_interaction/filters/hash_filter.rb
Expand Up @@ -49,11 +49,6 @@ def method_missing(*args, &block)
end
end

def model(*)
super
end
ActiveInteraction.deprecate self, :model, 'use `object` instead'

private

def clean_value(h, name, filter, value)
Expand Down

0 comments on commit bb51e90

Please sign in to comment.