0

globalize3 (0.2.0) 번역 된 모델을 번역 할 때 globalize3 (0.2.0) 번역 속성을 출력하는 데 annotate (2.4.1.beta) 보석을 사용할 수 있습니까? 나는 Post 창조 마이그레이션이 :title:text 특성 때문에Globalize3 변환 테이블이있는 레일즈 모델에 주석 달기

class Post < ActiveRecord::Base 
    attr_accessible :title, :text 
    translates :title, :text 
end 

처럼 보이는 like so

class CreatePosts < ActiveRecord::Migration 
    def up 
    create_table :posts do |t| 
     t.timestamps 
    end 
    Post.create_translation_table! title: :string, text: :text 
    end 
    def down 
    drop_table :posts 
    Post.drop_translation_table! 
    end 
end 

와 해당 클래스를 생성 한 경우 posts 테이블에 있지만 post_translations 테이블에없는

, 실행할 때

수동으로 모든 주석 생성 한 후이를에서 입력하지 않고 이러한 속성을 포함 할 수있는 방법이 있습니까

# == Schema Information 
# 
# Table name: posts 
#  
# id   :integer   not null, primary key 
# created_at :datetime  not null 
# updated_at :datetime  not null 
# 
class Post < ActiveRecord::Base 
... 

:

그들은 Post 모델의 출력에 포함되지 않습니다?

+0

Globalize가 버전 2 일 때 주석 달린 devs에게 [이것은 이미 묻어 있습니다] (https://github.com/ctran/annotate_models/issues/11)처럼 보입니다. –

답변

0

지금은 유감 스럽지만이 질문에 대한 대답은 아니오입니다. 주석 생성에 전역 화 변환 속성을 포함 할 방법이 없습니다. annotate's Github repo에서 모니터링 개발을 계속 유지해야합니다.