lib/hyperdrive/dsl.rb in hyperdrive-0.0.6 vs lib/hyperdrive/dsl.rb in hyperdrive-0.0.7
- old
+ new
@@ -36,9 +36,13 @@
allowed_options = default_cors_options.keys
options = Utils.sanitize_keys(allowed_options, options)
@config[:cors] = config[:cors].merge(options)
end
+ def per_page(per_page)
+ @config[:per_page] = per_page.to_i
+ end
+
def resource(name)
@resources[name] = Resource.new(name, @config, &Proc.new).resource
end
def reset! # not terribly useful outside of a test environment :(