Sha256: 46176de42e653b3ba722f088ffd34b0d601c178d22aa7c287ae705c3c132e893

Contents?: true

Size: 250 Bytes

Versions: 9

Compression:

Stored size: 250 Bytes

Contents

module SimpleAdmin
  module PathHelper
    def resource_path(res)
      if res.new_record?
        send("simple_admin_#{@interface.collection}_path")
      else
        send("simple_admin_#{@interface.member}_path", res)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
simple_admin-0.5.2 app/helpers/simple_admin/path_helper.rb
simple_admin-0.5.1 app/helpers/simple_admin/path_helper.rb
simple_admin-0.5.0 app/helpers/simple_admin/path_helper.rb
simple_admin-0.4.1 app/helpers/simple_admin/path_helper.rb
simple_admin-0.4.0 app/helpers/simple_admin/path_helper.rb
simple_admin-0.3.1 app/helpers/simple_admin/path_helper.rb
simple_admin-0.3.0 app/helpers/simple_admin/path_helper.rb
simple_admin-0.2.1 app/helpers/simple_admin/path_helper.rb
simple_admin-0.1.0 app/helpers/simple_admin/path_helper.rb