diff options
| author | jpl | 2016-11-29 16:33:34 +0100 | 
|---|---|---|
| committer | jpl | 2016-11-29 16:33:34 +0100 | 
| commit | f10e5914b98d71539a2f0afb292112c715d0089e (patch) | |
| tree | e795541c0ef73bed6a848984ef9017f58821c4c1 /app/controllers | |
| parent | 15f6dd2b0ef8f57179c546039a9ae9f8b8975034 (diff) | |
| download | chouette-core-f10e5914b98d71539a2f0afb292112c715d0089e.tar.bz2 | |
Refs #2019: updating networks with table builder
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/companies_controller.rb | 6 | ||||
| -rw-r--r-- | app/controllers/networks_controller.rb | 4 | 
2 files changed, 7 insertions, 3 deletions
diff --git a/app/controllers/companies_controller.rb b/app/controllers/companies_controller.rb index e61441524..91e7c311b 100644 --- a/app/controllers/companies_controller.rb +++ b/app/controllers/companies_controller.rb @@ -53,11 +53,11 @@ class CompaniesController < BreadcrumbController      authorize resource    end +  alias_method :current_referential, :line_referential +  helper_method :current_referential +    def company_params      params.require(:company).permit( :objectid, :object_version, :creation_time, :creator_id, :name, :short_name, :organizational_unit, :operating_department_name, :code, :phone, :fax, :email, :registration_number, :url, :time_zone )    end -  alias_method :current_referential, :line_referential -  helper_method :current_referential -  end diff --git a/app/controllers/networks_controller.rb b/app/controllers/networks_controller.rb index 85ec36769..8d6fc9a8e 100644 --- a/app/controllers/networks_controller.rb +++ b/app/controllers/networks_controller.rb @@ -57,7 +57,11 @@ class NetworksController < BreadcrumbController      authorize resource    end +  alias_method :current_referential, :line_referential +  helper_method :current_referential +    def network_params      params.require(:network).permit(:objectid, :object_version, :creation_time, :creator_id, :version_date, :description, :name, :registration_number, :source_name, :source_type_name, :source_identifier, :comment )    end +  end  | 
