diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-01 19:52:25 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-01 19:54:34 +0100 |
commit | 8f47f6a7ec4bdbf0a540efe3a3f9c6b493b2dc34 (patch) | |
tree | a5d6512339d4886a0261c194b3e138e48aa4cfe8 /app/models | |
parent | 91c542645574aaa0173e05a72e1c2ee562655469 (diff) |
Adding remote follow button
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/remote_follow.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/models/remote_follow.rb b/app/models/remote_follow.rb new file mode 100644 index 000000000..13281a4fc --- /dev/null +++ b/app/models/remote_follow.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class RemoteFollow + include ActiveModel::Validations + + attr_accessor :acct + + validates :acct, presence: true + + def initialize(attrs = {}) + @acct = attrs[:acct] + end +end |