You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a Base Model or something like that whit this type of content.
include a ruby module or overload ActiveRecord::Base ?
moduleclass << selfdeftotal_countoffset(nil).limit(nil).countenddefsearch(query,opts*)# TODO: search function to use specifics methods with PgSQL and accents# Or continue to use meta_search# Or found other solutionendendend
Do a module to automatically add before_create with uuid generation?
See how run friendly_id for inspiration.
One idea is to have a directory into lib/ like lib/model/ with PaginationExtension, SearchExtension and UUIDGenerationExtension for example.
The text was updated successfully, but these errors were encountered:
Create a Base Model or something like that whit this type of content.
include a ruby module or overload
ActiveRecord::Base
?Do a module to automatically add before_create with uuid generation?
See how run friendly_id for inspiration.
One idea is to have a directory into
lib/
likelib/model/
withPaginationExtension
,SearchExtension
andUUIDGenerationExtension
for example.The text was updated successfully, but these errors were encountered: