lib/soulless/model.rb in soulless-0.1.0 vs lib/soulless/model.rb in soulless-0.2.0
- old
+ new
@@ -1,11 +1,18 @@
module Soulless
module Model
def self.included(base)
base.class_eval do
extend ActiveModel::Naming
- include ActiveModel::Conversion
+ extend ActiveModel::Translation
include ActiveModel::Validations
+ include ActiveModel::Conversion
+
+ class << self
+ def i18n_scope
+ :soulless
+ end
+ end
def persisted?
false
end
\ No newline at end of file