Class: Tag

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/tag.rb

Overview

this is needed for now to make mass assignment security compatible with the translation of globalize3 Globalize::ActiveRecord::Translation.class_eval do

attr_accessible :locale

end

Instance Method Summary collapse

Instance Method Details

#to_paramObject



17
18
19
# File 'app/models/tag.rb', line 17

def to_param
  name ? "#{id}-#{name.to_url}" : id
end