{"action":"opened","number":1,"pull_request":{"state":"open","created_at":"2011-12-15T08:25:42Z","review_comments":0,"changed_files":3,"_links":{"review_comments":{"href":"https://api.github.com/repos/moomerman/preferences/pulls/1/comments"},"comments":{"href":"https://api.github.com/repos/moomerman/preferences/issues/1/comments"},"html":{"href":"https://github.com/moomerman/preferences/pull/1"},"self":{"href":"https://api.github.com/repos/moomerman/preferences/pulls/1"}},"patch_url":"https://github.com/moomerman/preferences/pull/1.patch","updated_at":"2011-12-15T08:25:42Z","user":{"gravatar_id":"b63c2d00125474973e2c1919f610fd92","id":71397,"url":"https://api.github.com/users/rainchen","avatar_url":"https://secure.gravatar.com/avatar/b63c2d00125474973e2c1919f610fd92?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"rainchen"},"issue_url":"https://github.com/moomerman/preferences/issues/1","comments":0,"deletions":1,"body":"Changes for this fork\r\n\r\nAdd MacroMethods preference_for: use a block for setting up the preference with group name Add :alias option for defining shortcut methods\r\n\r\nexample:\r\n\r\nclass User < ActiveRecord::Base\r\n  # use a block for setting up the preference with group name\r\n  preference_for :settings do\r\n    preference :timezone, :string, :default => \"+0800\", :alias => true\r\n  end\r\nend\r\n:alias => true enabling short alias methods:\r\n\r\n@user.timezone # => +0800\r\n@user.timezone = \"+0800\"\r\n","merged":false,"mergeable":null,"commits":4,"id":597199,"base":{"user":{"gravatar_id":"d34ec6de97e8f81513c1d7e29915a64d","id":23323,"url":"https://api.github.com/users/moomerman","avatar_url":"https://secure.gravatar.com/avatar/d34ec6de97e8f81513c1d7e29915a64d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"moomerman"},"repo":{"created_at":"2011-12-07T14:28:40Z","pushed_at":"2011-12-07T14:30:16Z","private":false,"clone_url":"https://github.com/moomerman/preferences.git","updated_at":"2011-12-15T07:52:39Z","name":"preferences","master_branch":null,"watchers":3,"svn_url":"https://svn.github.com/moomerman/preferences","forks":2,"language":"Ruby","owner":{"gravatar_id":"d34ec6de97e8f81513c1d7e29915a64d","id":23323,"url":"https://api.github.com/users/moomerman","avatar_url":"https://secure.gravatar.com/avatar/d34ec6de97e8f81513c1d7e29915a64d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"moomerman"},"id":2933010,"homepage":"http://www.pluginaweek.org","description":"Adds support for easily creating custom preferences for models","git_url":"git://github.com/moomerman/preferences.git","html_url":"https://github.com/moomerman/preferences","url":"https://api.github.com/repos/moomerman/preferences","size":124,"ssh_url":"git@github.com:moomerman/preferences.git","open_issues":1,"fork":true},"sha":"be796902bb88df22d17a2b67162eb656cb75e3bb","ref":"master","label":"moomerman:master"},"merged_by":null,"number":1,"additions":42,"head":{"user":{"gravatar_id":"b63c2d00125474973e2c1919f610fd92","id":71397,"url":"https://api.github.com/users/rainchen","avatar_url":"https://secure.gravatar.com/avatar/b63c2d00125474973e2c1919f610fd92?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"rainchen"},"repo":{"created_at":"2011-12-15T07:52:39Z","pushed_at":"2011-12-15T08:10:44Z","private":false,"clone_url":"https://github.com/rainchen/preferences.git","updated_at":"2011-12-15T08:10:44Z","name":"preferences","master_branch":null,"watchers":1,"svn_url":"https://svn.github.com/rainchen/preferences","forks":0,"language":"Ruby","owner":{"gravatar_id":"b63c2d00125474973e2c1919f610fd92","id":71397,"url":"https://api.github.com/users/rainchen","avatar_url":"https://secure.gravatar.com/avatar/b63c2d00125474973e2c1919f610fd92?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"rainchen"},"id":2986108,"homepage":"http://www.pluginaweek.org","description":"Adds support for easily creating custom preferences for models","git_url":"git://github.com/rainchen/preferences.git","html_url":"https://github.com/rainchen/preferences","url":"https://api.github.com/repos/rainchen/preferences","size":128,"ssh_url":"git@github.com:rainchen/preferences.git","open_issues":0,"fork":true},"sha":"55b573e607b800216d49adf0436e618a3ab0f22c","ref":"master","label":"rainchen:master"},"title":"Add MacroMethods preference_for","html_url":"https://github.com/moomerman/preferences/pull/1","closed_at":null,"url":"https://api.github.com/repos/moomerman/preferences/pulls/1","diff_url":"https://github.com/moomerman/preferences/pull/1.diff","merged_at":null}}