30 Aug '16, 10am

Little-known but Useful Rails Features: ActiveRecord.extending

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found! Little-known but Useful Rails Features: ActiveRecord.extending by Karol Galanciak — Today Every now and then I discover some features in Rails that are not that (arguably) commonly used, but there are some use cases when they turn out to be super useful and the best tool for the job. One of them would definitely be a nice addition to ActiveRecord::QueryMethods - extending method. Let’s see how it could be used in the Rails apps [MORE INSIDE ] Post a comment You can use basic HTML markup (e.g. <a>) or Markdown. Authenticate with GitHub As you are not logged in, you will be directed via GitHub to signup or sign in

Full article: http://www.rubyflow.com/p/7meke0-little-known-but-useful-...

Tweets