diff options
Diffstat (limited to 'app/controllers/connection_links_controller.rb')
| -rw-r--r-- | app/controllers/connection_links_controller.rb | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/app/controllers/connection_links_controller.rb b/app/controllers/connection_links_controller.rb index cbb8346c6..6f225af1f 100644 --- a/app/controllers/connection_links_controller.rb +++ b/app/controllers/connection_links_controller.rb @@ -9,6 +9,16 @@ class ConnectionLinksController < ChouetteController    respond_to :html, :xml, :json    respond_to :kml, :only => :show +  def index     +    index! do |format| +      format.html { +        if collection.out_of_bounds? +          redirect_to params.merge(:page => 1) +        end +      } +    end        +  end +    def show      @map = ConnectionLinkMap.new(resource).with_helpers(self)      show! | 
