class ActiveRecordBlockMatchers::Config
Public Class Methods
configure() { |self| ... }
click to toggle source
# File lib/active_record_block_matchers/config.rb, line 4 def self.configure yield self end
created_at_column_name()
click to toggle source
# File lib/active_record_block_matchers/config.rb, line 16 def self.created_at_column_name @created_at_column_name || "created_at" end
created_at_column_name=(column_name)
click to toggle source
# File lib/active_record_block_matchers/config.rb, line 20 def self.created_at_column_name=(column_name) @created_at_column_name = column_name end
default_strategy()
click to toggle source
# File lib/active_record_block_matchers/config.rb, line 8 def self.default_strategy @default_strategy || :id end
default_strategy=(strategy_key)
click to toggle source
# File lib/active_record_block_matchers/config.rb, line 12 def self.default_strategy=(strategy_key) @default_strategy = strategy_key.to_sym end
id_column_name()
click to toggle source
# File lib/active_record_block_matchers/config.rb, line 24 def self.id_column_name @id_column_name || "id" end
id_column_name=(column_name)
click to toggle source
# File lib/active_record_block_matchers/config.rb, line 28 def self.id_column_name=(column_name) @id_column_name = column_name end