class PowerApi::GeneratorHelper::SimpleTokenAuthHelper::SimpleTokenAuthResource
Public Class Methods
new(resource)
click to toggle source
# File lib/power_api/generator_helper/simple_token_auth_helper.rb, line 8 def initialize(resource) self.resource_name = resource end
Public Instance Methods
authenticated_resource_migration()
click to toggle source
# File lib/power_api/generator_helper/simple_token_auth_helper.rb, line 12 def authenticated_resource_migration "migration add_authentication_token_to_#{plural} \ authentication_token:string{30}:uniq" end