aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert2017-05-03 15:06:22 +0200
committerRobert2017-05-03 15:06:31 +0200
commitc415af8d04de007e117fe6992f79c7937342139f (patch)
tree0227a3fc8e076e52086540194e70682f0357a71f
parente89703a1646711ea2387e6058765aa3c6b953971 (diff)
downloadchouette-core-c415af8d04de007e117fe6992f79c7937342139f.tar.bz2
some typos and formatting
-rw-r--r--app/models/chouette/active_record.rb3
-rw-r--r--app/models/chouette/stop_area.rb2
-rw-r--r--app/models/chouette/trident_active_record.rb3
3 files changed, 4 insertions, 4 deletions
diff --git a/app/models/chouette/active_record.rb b/app/models/chouette/active_record.rb
index 59052075e..1862319af 100644
--- a/app/models/chouette/active_record.rb
+++ b/app/models/chouette/active_record.rb
@@ -7,7 +7,7 @@ module Chouette
before_save :nil_if_blank
- # to be overrided to set nullable attrs when empty
+ # to be overridden to set nullable attrs when empty
def self.nullable_attributes
[]
end
@@ -21,6 +21,7 @@ module Chouette
self.class.human_attribute_name(*args)
end
+ # TODO: Can we remove this?
# class << self
# alias_method :create_reflection_without_chouette_naming, :create_reflection
diff --git a/app/models/chouette/stop_area.rb b/app/models/chouette/stop_area.rb
index 7441e5f6f..4d98027d6 100644
--- a/app/models/chouette/stop_area.rb
+++ b/app/models/chouette/stop_area.rb
@@ -30,7 +30,7 @@ class Chouette::StopArea < Chouette::ActiveRecord
belongs_to :stop_area_referential
validates_presence_of :stop_area_referential_id
- acts_as_tree :foreign_key => 'parent_id',:order => "name"
+ acts_as_tree :foreign_key => 'parent_id', :order => "name"
attr_accessor :stop_area_type
attr_accessor :children_ids
diff --git a/app/models/chouette/trident_active_record.rb b/app/models/chouette/trident_active_record.rb
index cf7a59c0c..c1bc0172b 100644
--- a/app/models/chouette/trident_active_record.rb
+++ b/app/models/chouette/trident_active_record.rb
@@ -12,8 +12,7 @@ class Chouette::TridentActiveRecord < Chouette::ActiveRecord
end
def prefix
- self.referential.prefix
+ referential.prefix
end
-
end