Sha256: ac8cc8bbafec2f098278c3b2c2a7b8709c95d5c60343b8c579a319c3136e73a7
Contents?: true
Size: 653 Bytes
Versions: 1
Compression:
Stored size: 653 Bytes
Contents
# frozen_string_literal: true require 'action_table/version' require 'action_table/railtie' module ActionTable def self.configuration @configuration ||= Configuration.new end def self.config configuration end def self.configure yield(configuration) if block_given? configuration end class Configuration attr_accessor :styles, :actions, :link_method attr_writer :rails_host_app def initialize @rails_host_app = nil @styles = [] @actions = [] @link_method = :name end def rails_host_app @rails_host_app || raise('rails host app must be configured!') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
action_table-0.2.0 | lib/action_table.rb |