Trying to add a value to the TimeEntry Model
I'm almost too embarrassed to ask this, but I'm really new to plugin writing.
I'm trying to get a column in time_entries to get a custom value regardless of where you enter time from and its just not happening. I'm trying to get this simple case working before I try anything more complicated.
This is the gist of what I'm trying to do... This is a lib I'm requiring from the init.rb
def self.included(base) # :nodoc:
self.activity_rates_hourly_rate = 12
So... I'm not sure why before_save isn't making the values TimeEntry.activity_rates_hourly_rate isn't making it to the database with a value of 12.
I've had no troubles making plugins that introduce new functions to work, but I can't get anything working when I try to add to the existing Model.
Never mind. I've discovered that my underlying strategy was ill-advised. I'll be pursuing a different tactic.