rafaels88/pinfluence

View on GitHub
apps/admin/views/moments/new.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Admin::Views::Moments
  class New
    include Admin::View

    def form
      Form.new(:moment, routes.moments_path)
    end

    def submit_label
      'Create'
    end

    def person_id; end

    InfluencerOption = Struct.new(:name, :id)
    def influencers_options
      nil_option = InfluencerOption.new('Click here to choose', nil)
      influencers.unshift(nil_option)
    end

    def first_location_density; end

    def first_location_address; end

    def first_location_id; end
  end
end