Skip to content

Commit

Permalink
updated deprecated class
Browse files Browse the repository at this point in the history
this removes:
DEPRECATION WARNING: cl is deprecated and will be removed, use ActionDispatch::Integration instead.
(called from form_url at ~/.rvm/gems/ruby-2.0.0-p353/bundler/gems/turkee-8c37590970e0/lib/models/turkee_task.rb:261)
  • Loading branch information
Numerico committed Dec 20, 2013
1 parent 8cfe9bd commit 9b2680c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/turkee_task.rb
Expand Up @@ -244,7 +244,7 @@ def self.build_url(host, model, params, opts)


# Returns the default url of the model's :new route # Returns the default url of the model's :new route
def self.form_url(host, typ, params = {}) def self.form_url(host, typ, params = {})
@app ||= ActionController::Integration::Session.new(Rails.application) @app ||= ActionDispatch::Integration::Session.new(Rails.application)
url = (host + @app.send("new_#{typ.to_s.underscore}_path")) url = (host + @app.send("new_#{typ.to_s.underscore}_path"))
full_url(url, params) full_url(url, params)
end end
Expand Down

0 comments on commit 9b2680c

Please sign in to comment.