lib/ab_admin/models/locator.rb in ab_admin-0.1.2 vs lib/ab_admin/models/locator.rb in ab_admin-0.2.0
- old
+ new
@@ -1,9 +1,16 @@
module AbAdmin
module Models
module Locator
extend ActiveSupport::Concern
+ included do
+ extend ActiveModel::Naming
+ extend ActiveRecord::Translation
+ class_attribute :base_class
+ self.base_class = self
+ end
+
module ClassMethods
def find_files
Dir[Rails.root.join('config', 'locales', '*.yml')]
end
\ No newline at end of file