class Resource < ActiveRecord::Base

  before_save :default_plan_to_test

  def webhook_url
    if Rails.env.production?
      "https://webhookshield.com/webhooks/#{id}"
    else
      "http://localhost:3000/webhooks/#{id}"
    end
  end

  # Empty interface, implement later
  def forward(env, params);
    Rails.logger.info "Env: #{env.inspect}"
    Rails.logger.info "Params: #{params.inspect}"
  end

  private

  def default_plan_to_test
    self.plan ||= "test"
  end
end

class Resource < ActiveRecord::Base

  before_save :default_plan_to_test

  def webhook_url
    if Rails.env.production?
      "https://webhookshield.com/webhooks/#{id}"
    else
      "http://localhost:3000/webhooks/#{id}"
    end
  end

  # Empty interface, implement later
  def forward(env, params);
    # Rails.logger.info "Env: #{env.inspect}"
    # Rails.logger.info "Params: #{params.inspect}"
  end

  private

  def default_plan_to_test
    self.plan ||= "test"
  end
end

Disable logging in prep for conan
Disable logging in prep for conan
