Class: Tag
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Tag
- 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_param ⇒ Object
17 18 19 |
# File 'app/models/tag.rb', line 17 def to_param name ? "#{id}-#{name.to_url}" : id end |