Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
shioyama committed Aug 9, 2017
1 parent 06fd11e commit b001a29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
6 changes: 3 additions & 3 deletions lib/mobility/attributes.rb
Expand Up @@ -19,7 +19,7 @@ module Mobility
Attributes.new(:accessor, ["title"], backend: :my_backend, locale_accessors: [:en, :ja], cache: true, fallbacks: true)
will generate an anonymous module looking something like this:
will generate an anonymous module that behaves like this:
Module.new do
def title_backend
Expand Down Expand Up @@ -70,9 +70,9 @@ def title_ja=(value)
# End Locale Accessors
end
Including this module into a model class will then add the backend method, the
Including this module into a model class will thus add the backend method, the
reader, writer and presence methods, and the locale accessor so the model
class.
class. (These methods are in fact added to the model in an +included+ hook.)
==Setting up the Model Class
Expand Down
3 changes: 0 additions & 3 deletions lib/mobility/backends/active_record/column.rb
Expand Up @@ -16,9 +16,6 @@ module Backends
+I18n.available_locales+. (The generator can be run again to add new attributes
or locales.)
@note This backend disables the +locale_accessors+ option, which would
otherwise interfere with column methods.
@example
class Post < ActiveRecord::Base
translates :title, backend: :column
Expand Down
2 changes: 0 additions & 2 deletions lib/mobility/backends/sequel/column.rb
Expand Up @@ -7,8 +7,6 @@ module Backends
Implements the {Mobility::Backends::Column} backend for Sequel models.
@note This backend disables the +locale_accessors+ option, which would
otherwise interfere with column methods.
=end
class Sequel::Column
include Sequel
Expand Down

0 comments on commit b001a29

Please sign in to comment.