module Gaigo::HasLocale
Public Instance Methods
has_locale!(*args)
click to toggle source
# File lib/gaigo/has_locale.rb, line 6 def has_locale!(*args) options = args.extract_options! class_attribute :_locales unless defined?(_locales) self._locales = LANGS.copy(*args) unless respond_to?(:has_locale?) unless options[:accessible] == false attr_accessible :locale end end include Localized end