Skip to content
  • chaadow's avatar
    4ca61ffa
    Take AR affixes into account for AStorage models · 4ca61ffa
    chaadow authored
    All of ActiveStorage database modeltable nameshave been hard coded.
    Therefore, ActiveRecord::Base.(prefix|suffix) were not taken into
    consideration. To fix this we remove the hard coded lines. But then we
    need to also override an internal method for specifying the prefix
    because of a mystical ActiveRecord/ActiveStorage sync issue
    (Suffix does not appear to have the issue)
    
    Some tests were refactored to remove hard coded table name references,
    making ActiveStorage test suite compatible with ActiveRecord config.
    4ca61ffa
    Take AR affixes into account for AStorage models
    chaadow authored
    All of ActiveStorage database modeltable nameshave been hard coded.
    Therefore, ActiveRecord::Base.(prefix|suffix) were not taken into
    consideration. To fix this we remove the hard coded lines. But then we
    need to also override an internal method for specifying the prefix
    because of a mystical ActiveRecord/ActiveStorage sync issue
    (Suffix does not appear to have the issue)
    
    Some tests were refactored to remove hard coded table name references,
    making ActiveStorage test suite compatible with ActiveRecord config.
Loading