app/models/language.rb in enju_biblio-0.1.0.pre55 vs app/models/language.rb in enju_biblio-0.1.0.pre56
- old
+ new
@@ -1,9 +1,9 @@
class Language < ActiveRecord::Base
attr_accessible :name, :native_name, :display_name, :iso_639_1, :iso_639_2,
:iso_639_3, :note
include MasterModel
- default_scope :order => "languages.position"
+ default_scope order: "languages.position"
# If you wish to change the field names for brevity, feel free to enable/modify these.
# alias_attribute :iso1, :iso_639_1
# alias_attribute :iso2, :iso_639_2
# alias_attribute :iso3, :iso_639_3