Skip to content

Instantly share code, notes, and snippets.

@Sporky023
Created August 11, 2011 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sporky023/1140730 to your computer and use it in GitHub Desktop.
Save Sporky023/1140730 to your computer and use it in GitHub Desktop.
55 def build_relation(klass, table, attribute, value) #:nodoc:
56 debugger; column = klass.columns_hash[attribute.to_s]
57 value = column.limit ? value.to_s.mb_chars[0, column.limit] : value.to_s if column.text?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment