Skip to content

Instantly share code, notes, and snippets.

@huydx
Created June 13, 2013 14:31
Show Gist options
  • Save huydx/5774135 to your computer and use it in GitHub Desktop.
Save huydx/5774135 to your computer and use it in GitHub Desktop.
init.rb
def initialize(options={})
options.each do |key, value|
key = key.to_s
FriendRecommenderDB.class_eval do
attr_accessor key
end
send("#{key}=", value)
end
end
@huydx
Copy link
Author

huydx commented Jun 14, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment