Sha256: 2a1b6607bd09b74c5dbdb9de767f0453cdce26fdffad8b00908f1836396a0972

Contents?: true

Size: 337 Bytes

Versions: 2

Compression:

Stored size: 337 Bytes

Contents

module Federails
  module ServerHelper
    def remote_follow_url
      method_name = Federails.configuration.remote_follow_url_method.to_s
      if method_name.starts_with? 'federails.'
        send(method_name.gsub('federails.', ''))
      else
        Rails.application.routes.url_helpers.send(method_name)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
federails-0.4.0 app/helpers/federails/server_helper.rb
federails-0.3.0 app/helpers/federails/server_helper.rb