Skip to content

Instantly share code, notes, and snippets.

@raysrashmi
Created November 11, 2012 17:53
Show Gist options
  • Save raysrashmi/4055689 to your computer and use it in GitHub Desktop.
Save raysrashmi/4055689 to your computer and use it in GitHub Desktop.
class Book < ActiveRecord::Base
attr_accessible :name, :author, :public as : :admin
attr_accessible :name, :author, as : :user
end
@lisovskyvlad
Copy link

I think theare are type, as : as:

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