Skip to content

Digital Ronin

  • Home
  • Blog
  • Contact

Month: December 2014

December 19, 2014January 30, 2019 digitalronin programming

Rails Class Renamer

I fairly often find myself changing the name of a class, as a project alters over time. In a rails project, this means I have to; Rename the source code (e.g. app/models/foo.rb -> app/models/bar.rb)Rename the spec file (e.g. spec/models/foo_spec.rb -> spec/models/bar_spec.rb)Search and replace in my code, changing e.g. ‘Foo’ to ‘Bar’ but not changing ‘FooBaz’ … Continue reading Rails Class Renamer

Archives

  • July 2022 (1)
  • May 2021 (5)
  • April 2021 (3)
  • January 2021 (2)
  • December 2020 (1)
  • November 2020 (1)
  • October 2020 (1)
  • September 2020 (1)
  • August 2020 (1)
  • May 2020 (1)
  • April 2020 (3)
  • March 2019 (1)
  • February 2019 (3)
  • January 2019 (2)
  • July 2017 (1)
  • June 2017 (2)
  • February 2017 (1)
  • January 2017 (4)
  • December 2016 (1)
  • September 2016 (1)
  • July 2016 (2)
  • June 2016 (1)
  • May 2016 (1)
  • March 2016 (1)
  • February 2016 (1)
  • January 2016 (6)
  • December 2015 (3)
  • November 2015 (1)
  • August 2015 (1)
  • July 2015 (1)
  • December 2014 (1)
  • October 2014 (1)
  • July 2014 (2)
  • April 2014 (5)
  • March 2014 (6)
  • October 2011 (2)
  • September 2011 (2)
Blog at WordPress.com.
  • Follow Following
    • Digital Ronin
    • Already have a WordPress.com account? Log in now.
    • Digital Ronin
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar