aboutsummaryrefslogtreecommitdiffstats
path: root/app/policies
diff options
context:
space:
mode:
authorcedricnjanga2017-11-22 00:15:30 +0100
committercedricnjanga2017-11-22 00:15:30 +0100
commit5489c9482cb8658b8540da2b46bfd28f321d866e (patch)
treef1b1cdff940319c1b60879a23b232ecd9d4e9284 /app/policies
parent763010ced3202c99f705562a373861f926aad9a1 (diff)
downloadchouette-core-5489c9482cb8658b8540da2b46bfd28f321d866e.tar.bz2
Fix the delation of the hacking of Chouette::ActiveRecord#model_name to remove the Chouette namespace
off of the construction of link in the app and in other places. Added a small change in the reflex sync to set the stop_area_referential in the initialization of the object to be in sync with the work on the objectids (need a objectid_formatter)
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/access_link_policy.rb (renamed from app/policies/chouette/access_link_policy.rb)2
-rw-r--r--app/policies/access_point_policy.rb (renamed from app/policies/chouette/access_point_policy.rb)2
-rw-r--r--app/policies/company_policy.rb (renamed from app/policies/chouette/company_policy.rb)2
-rw-r--r--app/policies/connection_link_policy.rb (renamed from app/policies/chouette/connection_link_policy.rb)2
-rw-r--r--app/policies/group_of_line_policy.rb (renamed from app/policies/chouette/group_of_line_policy.rb)2
-rw-r--r--app/policies/journey_pattern_policy.rb (renamed from app/policies/chouette/journey_pattern_policy.rb)2
-rw-r--r--app/policies/line_policy.rb (renamed from app/policies/chouette/line_policy.rb)2
-rw-r--r--app/policies/network_policy.rb (renamed from app/policies/chouette/network_policy.rb)2
-rw-r--r--app/policies/route_policy.rb (renamed from app/policies/chouette/route_policy.rb)2
-rw-r--r--app/policies/routing_constraint_zone_policy.rb (renamed from app/policies/chouette/routing_constraint_zone_policy.rb)2
-rw-r--r--app/policies/stop_area_policy.rb (renamed from app/policies/chouette/stop_area_policy.rb)2
-rw-r--r--app/policies/time_table_policy.rb (renamed from app/policies/chouette/time_table_policy.rb)2
-rw-r--r--app/policies/vehicle_journey_policy.rb (renamed from app/policies/chouette/vehicle_journey_policy.rb)2
13 files changed, 0 insertions, 26 deletions
diff --git a/app/policies/chouette/access_link_policy.rb b/app/policies/access_link_policy.rb
index 539262458..2b974ee71 100644
--- a/app/policies/chouette/access_link_policy.rb
+++ b/app/policies/access_link_policy.rb
@@ -1,4 +1,3 @@
-module Chouette
class AccessLinkPolicy < ApplicationPolicy
class Scope < Scope
def resolve
@@ -18,4 +17,3 @@ module Chouette
!archived? && organisation_match? && user.has_permission?('access_links.destroy')
end
end
-end \ No newline at end of file
diff --git a/app/policies/chouette/access_point_policy.rb b/app/policies/access_point_policy.rb
index 2ecd971cd..368cf14e7 100644
--- a/app/policies/chouette/access_point_policy.rb
+++ b/app/policies/access_point_policy.rb
@@ -1,4 +1,3 @@
-module Chouette
class AccessPointPolicy < ApplicationPolicy
class Scope < Scope
def resolve
@@ -18,4 +17,3 @@ module Chouette
!archived? && organisation_match? && user.has_permission?('access_points.destroy')
end
end
-end \ No newline at end of file
diff --git a/app/policies/chouette/company_policy.rb b/app/policies/company_policy.rb
index f2167b91e..d29836e07 100644
--- a/app/policies/chouette/company_policy.rb
+++ b/app/policies/company_policy.rb
@@ -1,4 +1,3 @@
-module Chouette
class CompanyPolicy < ApplicationPolicy
class Scope < Scope
def resolve
@@ -6,4 +5,3 @@ module Chouette
end
end
end
-end \ No newline at end of file
diff --git a/app/policies/chouette/connection_link_policy.rb b/app/policies/connection_link_policy.rb
index ac7b1746a..7cf0b7131 100644
--- a/app/policies/chouette/connection_link_policy.rb
+++ b/app/policies/connection_link_policy.rb
@@ -1,4 +1,3 @@
-module Chouette
class ConnectionLinkPolicy < ApplicationPolicy
class Scope < Scope
def resolve
@@ -18,4 +17,3 @@ module Chouette
!archived? && organisation_match? && user.has_permission?('connection_links.update')
end
end
-end \ No newline at end of file
diff --git a/app/policies/chouette/group_of_line_policy.rb b/app/policies/group_of_line_policy.rb
index f31107452..60c60184c 100644
--- a/app/policies/chouette/group_of_line_policy.rb
+++ b/app/policies/group_of_line_policy.rb
@@ -1,4 +1,3 @@
-module Chouette
class GroupOfLinePolicy < ApplicationPolicy
class Scope < Scope
def resolve
@@ -6,4 +5,3 @@ module Chouette
end
end
end
-end \ No newline at end of file
diff --git a/app/policies/chouette/journey_pattern_policy.rb b/app/policies/journey_pattern_policy.rb
index add28e0ca..c0c9218c2 100644
--- a/app/policies/chouette/journey_pattern_policy.rb
+++ b/app/policies/journey_pattern_policy.rb
@@ -1,4 +1,3 @@
-module Chouette
class JourneyPatternPolicy < ApplicationPolicy
class Scope < Scope
@@ -19,4 +18,3 @@ module Chouette
!archived? && organisation_match? && user.has_permission?('journey_patterns.update')
end
end
-end \ No newline at end of file
diff --git a/app/policies/chouette/line_policy.rb b/app/policies/line_policy.rb
index 678191ef7..559f4e2f8 100644
--- a/app/policies/chouette/line_policy.rb
+++ b/app/policies/line_policy.rb
@@ -1,4 +1,3 @@
-module Chouette
class LinePolicy < ApplicationPolicy
class Scope < Scope
@@ -22,4 +21,3 @@ module Chouette
def update_footnote? ; edit_footnote? end
def new_footnote? ; create_footnote? end
end
-end \ No newline at end of file
diff --git a/app/policies/chouette/network_policy.rb b/app/policies/network_policy.rb
index d792645b7..75105b7f8 100644
--- a/app/policies/chouette/network_policy.rb
+++ b/app/policies/network_policy.rb
@@ -1,4 +1,3 @@
-module Chouette
class NetworkPolicy < ApplicationPolicy
class Scope < Scope
def resolve
@@ -6,4 +5,3 @@ module Chouette
end
end
end
-end \ No newline at end of file
diff --git a/app/policies/chouette/route_policy.rb b/app/policies/route_policy.rb
index 224d3c09e..b49f7bca7 100644
--- a/app/policies/chouette/route_policy.rb
+++ b/app/policies/route_policy.rb
@@ -1,4 +1,3 @@
-module Chouette
class RoutePolicy < ApplicationPolicy
class Scope < Scope
def resolve
@@ -22,4 +21,3 @@ module Chouette
create?
end
end
-end \ No newline at end of file
diff --git a/app/policies/chouette/routing_constraint_zone_policy.rb b/app/policies/routing_constraint_zone_policy.rb
index ce08cfde5..6bdc69d5c 100644
--- a/app/policies/chouette/routing_constraint_zone_policy.rb
+++ b/app/policies/routing_constraint_zone_policy.rb
@@ -1,4 +1,3 @@
-module Chouette
class RoutingConstraintZonePolicy < ApplicationPolicy
class Scope < Scope
def resolve
@@ -18,4 +17,3 @@ module Chouette
!archived? && organisation_match? && user.has_permission?('routing_constraint_zones.update')
end
end
-end \ No newline at end of file
diff --git a/app/policies/chouette/stop_area_policy.rb b/app/policies/stop_area_policy.rb
index 1a34b3753..eaf4efe60 100644
--- a/app/policies/chouette/stop_area_policy.rb
+++ b/app/policies/stop_area_policy.rb
@@ -1,4 +1,3 @@
-module Chouette
class StopAreaPolicy < ApplicationPolicy
class Scope < Scope
def resolve
@@ -6,4 +5,3 @@ module Chouette
end
end
end
-end \ No newline at end of file
diff --git a/app/policies/chouette/time_table_policy.rb b/app/policies/time_table_policy.rb
index 33a5f541a..4638eabd8 100644
--- a/app/policies/chouette/time_table_policy.rb
+++ b/app/policies/time_table_policy.rb
@@ -1,4 +1,3 @@
-module Chouette
class TimeTablePolicy < ApplicationPolicy
class Scope < Scope
@@ -31,4 +30,3 @@ module Chouette
update?
end
end
-end \ No newline at end of file
diff --git a/app/policies/chouette/vehicle_journey_policy.rb b/app/policies/vehicle_journey_policy.rb
index 744c6f8d4..1aa7a812e 100644
--- a/app/policies/chouette/vehicle_journey_policy.rb
+++ b/app/policies/vehicle_journey_policy.rb
@@ -1,4 +1,3 @@
-module Chouette
class VehicleJourneyPolicy < ApplicationPolicy
class Scope < Scope
def resolve
@@ -18,4 +17,3 @@ module Chouette
!archived? && organisation_match? && user.has_permission?('vehicle_journeys.update')
end
end
-end \ No newline at end of file