Class: Admin::ConfigurationsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/admin/configurations_controller.rb

Class Method Summary collapse

Class Method Details



5
6
7
8
9
10
11
12
13
# File 'app/controllers/admin/configurations_controller.rb', line 5

def add_link(text, path, description)
  unless @@extension_links.any?{|link| link[:link_text] == text}
    @@extension_links << {
      :link => path,
      :link_text => text,
      :description => description,
    }
  end
end