class PublicActivity::Config::Block
Provides simple DSL for the config block.
Public Instance Methods
enabled(en = nil)
click to toggle source
Decides whether to enable PublicActivity
. @param en [Boolean] Enabled?
# File lib/public_activity/config.rb, line 91 def enabled(en = nil) @enabled = (en.nil? ? @enabled : en) end
orm(orm = nil)
click to toggle source
@see Config#orm
# File lib/public_activity/config.rb, line 85 def orm(orm = nil) @orm = (orm ? orm.to_sym : false) || @orm end
table_name(name = nil)
click to toggle source
Sets the table_name
for the model
# File lib/public_activity/config.rb, line 97 def table_name(name = nil) @table_name = (name.nil? ? @table_name : name) end