Lets say I have a cronjob like this:
every 1.day, :at => \'4:30 am\' do
runner \"MyModel.task_to_run_at_four_thirty_in_the_morning\"
end
>
# In rails 4
require File.expand_path('../..//config/environment.rb', __FILE__)
# This is your table by which you will get your new value
bid_update = DynamicOfferTime.first
# Now Task As
every (bid_update.hour_value).hours do
puts "This will repeat in every #{bid_update.hour_value} hour"
end