Sha256: 7f3ec1473bb9cc859800a858c4ce6083c606a83d80b54c3ae31495e320cffc92

Contents?: true

Size: 470 Bytes

Versions: 12

Compression:

Stored size: 470 Bytes

Contents

# this is needed for now to make mass assignment security compatible with the translation of globalize3
Globalize::ActiveRecord::Translation.class_eval do
  attr_accessible :locale
end

class Setting < ActiveRecord::Base
  
  attr_accessible :company_name, :contact_email, :site_name, :site_tagline, :blog_name, :blog_tagline, :disable_blog, :enable_comments_in_pages, :enable_comments_in_blog
  
  translates :site_name, :site_tagline, :blog_name, :blog_tagline
  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tkh_admin_panel-0.9 app/models/setting.rb
tkh_admin_panel-0.3.5 app/models/setting.rb
tkh_admin_panel-0.3.2 app/models/setting.rb
tkh_admin_panel-0.3.1 app/models/setting.rb
tkh_admin_panel-0.3 app/models/setting.rb
tkh_admin_panel-0.2.8 app/models/setting.rb
tkh_admin_panel-0.2.7 app/models/setting.rb
tkh_admin_panel-0.2.6 app/models/setting.rb
tkh_admin_panel-0.2.5.1 app/models/setting.rb
tkh_admin_panel-0.2.5 app/models/setting.rb
tkh_admin_panel-0.2.4.1 app/models/setting.rb
tkh_admin_panel-0.2.4 app/models/setting.rb