Sha256: afc79cbdd21381145c2e7ae34de20a9aeadafcb0732966d45bf5ce9641b2cddf

Contents?: true

Size: 268 Bytes

Versions: 1

Compression:

Stored size: 268 Bytes

Contents

class SiteFormBuilder < ExtensibleFormBuilder
  after(:site, :default_fields) do |f|
    render :partial => 'admin/sites/comments_settings', :locals => { :f => f }
  end
end

ActionDispatch::Callbacks.to_prepare do
  Site.class_eval do
    has_many_comments
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adva-0.0.1 adva_comments/config/initializers/site.rb