Sha256: d8f56d7dc3c44c4ccd3ec0fbfdd8407cf6ef7525214e4a7f69f785fd4462cb4c
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 Bytes
Contents
RailsAdmin.config do |config| config.model News do edit do field :title field :photo field :content, :ck_editor field :published_on do default_value do Time.now.in_time_zone('Europe/Paris') end end field :user do default_value do bindings[:view]._current_user.id end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
beerify-0.1.1 | config/initializers/rails_admin/news_admin.rb |
beerify-0.1.0 | config/initializers/rails_admin/news_admin.rb |